aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profile.dot.link3
-rw-r--r--zshrc.dot.link14
2 files changed, 13 insertions, 4 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 04e67bc..83bfa09 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -36,7 +36,8 @@ fi
export PATH=$PATH
# Where most projects live
-export WORKPATH="~/file:~/data:~/code:~/apps:~/.dotfiles:~/.dotfiles/modules"
+# Use $HOME instead of ~ for zsh compatibility
+export WORKPATH="$HOME/file:$HOME/data:$HOME/code:$HOME/apps:$HOME/.dotfiles:$HOME/.dotfiles/modules"
# See http://www.caliban.org/bash/#bashtips
export CDPATH=".:~:$WORKPATH"
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