From a06614e72ffc6b8c8fe6741f4546756ee660d4d6 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 12 Nov 2021 17:04:51 +0100 Subject: Updated for macos --- config/zsh/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/zsh/.zshrc') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 77ee41e..5255fa7 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -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 -- cgit From 85d2b504164eac4d07a449df7c3f112c89f31473 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 13 Nov 2021 19:05:18 +0100 Subject: Updated alacritty for macos --- config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/zsh/.zshrc') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 5255fa7..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 -- cgit