diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-11-15 18:52:09 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-11-15 18:52:09 +0100 |
| commit | 4fe8f0bcef339aa9770819b431b67b2e063c83b4 (patch) | |
| tree | ad0a3529875bb2c2bb0e961e0c3688bb9d502bd6 /config/zsh/.zshrc | |
| parent | 095400f236f7949b336d53a1310e444a892a6afb (diff) | |
| parent | 125bcca5e7ed1b4527083bc2bcbdf66aa166d341 (diff) | |
| download | dotfiles-4fe8f0bcef339aa9770819b431b67b2e063c83b4.tar.gz dotfiles-4fe8f0bcef339aa9770819b431b67b2e063c83b4.tar.bz2 dotfiles-4fe8f0bcef339aa9770819b431b67b2e063c83b4.zip | |
Merge branch 'master' of cacharle.xyz:/srv/git/dotfiles
Diffstat (limited to 'config/zsh/.zshrc')
| -rw-r--r-- | config/zsh/.zshrc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 77ee41e..92c55c5 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -62,7 +62,7 @@ chpwd() { content="$(find . -maxdepth 1 | wc -l)" ([ "$content" -lt 20 ] && ls -l) || echo "$(pwd) contains $content entries" - [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd + [ "$(uname)" = 'Linux' ] && [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd } # https://wiki.archlinux.org/title/Zsh#Shortcut_to_exit_shell_on_partial_command_line @@ -92,4 +92,7 @@ export YSU_MESSAGE_POSITION="after" # you-should # install pkgfile package on Arch Linux # run `pkgfile --update` -. /usr/share/doc/pkgfile/command-not-found.zsh +if [ "$(uname)" = 'Linux' ] +then + . /usr/share/doc/pkgfile/command-not-found.zsh +fi |
