diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-08-17 10:59:08 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-08-17 11:03:43 +0000 |
commit | 23423f7c0a674f32fe135183ada90ec098b6acb6 (patch) | |
tree | 767cb05b4fee32878458e6b198f53ce8efdd8cec /modules | |
parent | c0bf09013d1d9e1afd640aa2c4cce773b5be633a (diff) | |
download | nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar.gz nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar.bz2 nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar.lz nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar.xz nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.tar.zst nixlib-23423f7c0a674f32fe135183ada90ec098b6acb6.zip |
modules/zsh: don't alias ls to path
I'm not sure why it was like this, but I think it's very surprising that only ls would bypass PATH. It also made the terminal title look ugly. I suspect that what happened here is that I wrote this a long time ago when I didn't understand aliases and was worried about making it recursive?
Diffstat (limited to 'modules')
-rw-r--r-- | modules/shell/zsh/zshrc.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index d8b080f45b0b..afff41b4cdf4 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -1,6 +1,5 @@ { stdenv, lib , any-nix-shell -, coreutils , zsh-autosuggestions , zsh-history-substring-search , zsh-syntax-highlighting @@ -177,9 +176,9 @@ fi # Aliases alias beep='printf "\a"' alias ls=${lib.escapeShellArg (if stdenv.isDarwin then - "/bin/ls -AFh" + "ls -AFh" else - "${coreutils}/bin/ls -AF --si --color=auto")} + "ls -AF --si --color=auto")} alias tree='tree -aRF -I .git' alias vim=nvim |