Change terminal title to cwd
This commit is contained in:
parent
d6974e1dfd
commit
e0f5640801
|
@ -22,7 +22,6 @@ in
|
|||
[ "$(tty)" = "/dev/tty1" ] && exec sway
|
||||
'';
|
||||
|
||||
|
||||
shellAliases = {
|
||||
nano = "nvim";
|
||||
vi = "nvim";
|
||||
|
@ -84,6 +83,10 @@ in
|
|||
stty -ixon
|
||||
stty erase '^?'
|
||||
|
||||
precmd () {
|
||||
echo -e "\e]2;$(pwd)\e\\"
|
||||
}
|
||||
|
||||
# If a command is not found, show me where it is
|
||||
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue