4 interactiveShellInit = ''
5 bind '"\e[A":history-search-backward'
6 bind '"\e[B":history-search-forward'
8 # Ignore duplicate commands, ignore commands starting with a space
9 export HISTCONTROL=erasedups:ignorespace
11 # Append to the history instead of overwriting (good for multiple connections)
15 mkcd () { mkdir -p "$1"; cd "$1"; }
19 grep = "grep --color";
22 ls = "ls --color=tty";
23 mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
26 st="sudo systemctl status";
27 j="sudo journalctl -u";
28 jb="sudo journalctl -b";
30 nix-history="sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";