diff --git a/nix/homeModules/common/fish/aliasesAbbrs.nix b/nix/homeModules/common/fish/aliasesAbbrs.nix index 8e4755fe..dd8feb54 100644 --- a/nix/homeModules/common/fish/aliasesAbbrs.nix +++ b/nix/homeModules/common/fish/aliasesAbbrs.nix @@ -1,40 +1,19 @@ { pkgs, - hostname, lib, ... }: { programs.fish = { shellAbbrs = lib.mergeAttrsList [ - { - # Docker - dc = "docker compose"; - - # Git - gaa = "git add (git rev-parse --show-toplevel)"; - "ga." = "git add ."; - gp = "git pull"; - gP = "git push"; - - # Editor - ":q" = "exit"; - } - (lib.optionalAttrs pkgs.stdenv.isLinux { "," = "nix-shell --command fish -p"; }) - - (lib.optionalAttrs pkgs.stdenv.isDarwin { - nswitch = "darwin-rebuild switch -L --flake .#${hostname} --option sandbox false"; - ntest = "darwin-rebuild test -L --flake .#${hostname} --option sandbox false"; - }) ]; shellAliases = lib.mergeAttrsList [ { rm = "rm -I"; # idiot protection tree = "tree -Cph"; - restow = "cd ~/.dotfiles/ && stow -D . && stow -S . && prevd"; } (lib.optionalAttrs pkgs.stdenv.isLinux { @@ -42,21 +21,6 @@ chmod = "chmod --preserve-root"; chown = "chown --preserve-root"; }) - - (lib.optionalAttrs pkgs.stdenv.isDarwin ( - let - cmds = builtins.concatStringsSep ";"; - in { - reset_launchpad = cmds [ - "defaults write com.apple.dock ResetLaunchPad -bool true" - "killall Dock" - ]; - add_spacer_tile = cmds [ - "defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"small-spacer-tile\";}'" - "killall Dock" - ]; - } - )) ]; }; }