From 4e77f50b6f0e3827beaadf9de4aa46ef071d9c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Wed, 4 Jun 2025 19:24:04 +0200 Subject: [PATCH] fish: remove old alias --- nix/homeModules/common/fish/aliasesAbbrs.nix | 36 -------------------- 1 file changed, 36 deletions(-) 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" - ]; - } - )) ]; }; }