fix(aliases): Set global aliases using shellGlobalAliases

This commit is contained in:
Jiří Štefka 2024-11-21 23:05:13 +01:00
parent 9bd687ef8c
commit 439c7b02c5
Signed by: jiriks74
GPG Key ID: 1D5E30D3DB2264DE

23
zsh.nix

@ -162,16 +162,6 @@
# Special aliases that may not work with Nix config # Special aliases that may not work with Nix config
# Command line head / tail shortcuts # Command line head / tail shortcuts
alias H="| head";
alias T="| tail";
alias G="| grep";
alias L="| less";
alias M="| most";
alias LL="2>&1 | less";
alias CA="2>&1 | cat -A";
alias NE="2> /dev/null";
alias NUL="> /dev/null 2>&1";
alias P="2>&1| pygmentize -l pytb";
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
zprof zprof
fi fi
@ -219,6 +209,19 @@
sshc = "ssh-connect"; sshc = "ssh-connect";
}; };
shellGlobalAliases = {
H="| head";
T="| tail";
G="| grep";
L="| less";
M="| most";
LL="2>&1 | less";
CA="2>&1 | cat -A";
NE="2> /dev/null";
NUL="> /dev/null 2>&1";
P="2>&1| pygmentize -l pytb";
};
history = { history = {
# ignoreAllDups = true; # ignoreAllDups = true;
path = "${config.xdg.cacheHome}/zhistory"; path = "${config.xdg.cacheHome}/zhistory";