aboutsummaryrefslogtreecommitdiff
path: root/zshrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-24 18:58:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-24 18:58:32 -0300
commitc63449d54949cf00a966ef10165d6f26d0419e1c (patch)
tree9df43b10f2759bee5d649140abd530afae666008 /zshrc.dot.link
parent965091161e9ce2714b07f0a374da4ac6e88a57bf (diff)
downloadprofile-c63449d54949cf00a966ef10165d6f26d0419e1c.tar.gz
profile-c63449d54949cf00a966ef10165d6f26d0419e1c.tar.bz2
Updates zsh path completion
Diffstat (limited to 'zshrc.dot.link')
-rw-r--r--zshrc.dot.link14
1 files changed, 11 insertions, 3 deletions
diff --git a/zshrc.dot.link b/zshrc.dot.link
index 9df34c6..5e521d1 100644
--- a/zshrc.dot.link
+++ b/zshrc.dot.link
@@ -1,3 +1,6 @@
+# Source default profile
+source ~/.profile
+
# Set up the prompt
autoload -Uz promptinit && promptinit
autoload -U colors && colors
@@ -21,6 +24,11 @@ fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit
compinit
+# CD behavior
+# Whishlist: https://superuser.com/questions/565310/silent-cd-using-cdpath-with-zsh/565396
+setopt auto_cd
+
+# Completion config
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
@@ -37,11 +45,11 @@ zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
+zstyle ':completion:*:descriptions' format %d
+zstyle ':completion:*:descriptions' format %B%d%b
+zstyle ':completion:*:complete:(cd|pushd):*' tag-order 'local-directories named-directories path-directories'
# Powerline
if [ -e '/usr/share/powerline/bindings/zsh/powerline.zsh' ]; then
. /usr/share/powerline/bindings/zsh/powerline.zsh
fi
-
-# Source default profile
-source ~/.profile