mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
have better support for zsh on NFS wrt Macs
This commit is contained in:
parent
4966613ae1
commit
647826c711
2 changed files with 11 additions and 2 deletions
|
@ -26,7 +26,7 @@ zstyle -e ':completion:*' users "reply=( root '${USERNAME}' )"
|
|||
|
||||
# caching good
|
||||
zstyle ':completion:*' use-cache on
|
||||
zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${HOST}"
|
||||
zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${LHOSTNAME}"
|
||||
|
||||
# descriptions
|
||||
zstyle ':completion:*:messages' format $'%{\e[01;35m%} -- %d -- %{\e[00;00m%}'
|
||||
|
|
11
zshrc
11
zshrc
|
@ -3,7 +3,16 @@
|
|||
# Trivial modifications: David Majnemer
|
||||
# vim:set nowrap:
|
||||
|
||||
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${HOST}"
|
||||
case `uname -s` in
|
||||
Darwin)
|
||||
export LHOSTNAME=`scutil --get LocalHostName`
|
||||
;;
|
||||
*)
|
||||
export LHOSTNAME=${HOST}
|
||||
;;
|
||||
esac
|
||||
|
||||
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${LHOSTNAME}"
|
||||
|
||||
autoload age
|
||||
autoload zmv
|
||||
|
|
Loading…
Add table
Reference in a new issue