diff --git a/home-manager/bash.nix b/home-manager/bash.nix index 404bbe6c..7bbd8994 100644 --- a/home-manager/bash.nix +++ b/home-manager/bash.nix @@ -65,7 +65,7 @@ shellAliases = { # git alias cannot get the interactive feature, so aliasing in shell layer # https://unix.stackexchange.com/questions/212872/how-to-get-last-n-commands-from-history#comment1125605_212873 - gsc = "git commit -a -m \"\\`$(fc -ln -1 | grep -Po '(\\S.*)')\\`\""; + glc = "git commit -a -m \"\\`$(fc -ln -1 | grep -Po '(\\S.*)')\\`\""; }; historySize = 100000; @@ -73,7 +73,7 @@ historyFileSize = 4200000; historyControl = [ "erasedups" "ignoredups" "ignorespace" ]; # NOTE: I didn't check it should have different globs as zsh or not, at least the sepelator is not same. - historyIgnore = [ "cd" "pushd" "popd" "z" "ls" "ll" "la" "rm" "rmdir" "git show" "exit" "gsc" ]; + historyIgnore = [ "cd" "pushd" "popd" "z" "ls" "ll" "la" "rm" "rmdir" "git show" "exit" "glc" ]; # Extracting because embedded here requires complex escape with nix multiline. initExtra = '' diff --git a/home-manager/fish.nix b/home-manager/fish.nix index 97e51ad8..c4812170 100644 --- a/home-manager/fish.nix +++ b/home-manager/fish.nix @@ -52,7 +52,7 @@ # `alias` will show current aliases shellAliases = { - gsc = "git commit -a -m \"`$(history --max 1)`\""; + glc = "git commit -a -m \"`$(history --max 1)`\""; }; plugins = [{ diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index bea25cf3..ad032edd 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -23,7 +23,7 @@ shellAliases = { # git alias cannot get the interactive feature, so aliasing in shell layer # https://unix.stackexchange.com/questions/212872/how-to-get-last-n-commands-from-history#comment1125605_212873 - gsc = "git commit -a -m \"\\`$(fc -ln -1)\\`\""; + glc = "git commit -a -m \"\\`$(fc -ln -1)\\`\""; }; history = {