diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-29 13:08:35 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-29 13:08:35 +0200 |
commit | 066fbbef78749a97a4b2285654c79a64c7255828 (patch) | |
tree | e57c8e5afee3add48c79dd976a833ebd4d77156c | |
parent | b99c2c318a153ed4ca31cbe9f116072a43b60020 (diff) | |
download | dotfiles-066fbbef78749a97a4b2285654c79a64c7255828.tar.xz |
zsh: set LS_COLORS, remove ,, alias
-rw-r--r-- | zsh/.zprofile | 7 | ||||
-rw-r--r-- | zsh/.zshrc | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile index c8d73c3..d224f58 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -33,4 +33,9 @@ export GTK_IM_MODULE=xim export SUDO_PROMPT=$'\e[31mSUDO\e[m password for \e[34m%p\e[m: ' -[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx "$HOME/.config/X11/xinitrc" +# LS_COLORS is now required for `ls` to use colour +eval "$(dircolors -b ~/.config/dircolors)" + +if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx "$HOME/.config/X11/xinitrc" +fi @@ -65,7 +65,6 @@ alias df='df -h' alias nano='nano -w' # No linewrap alias ncmpcpp='ncmpcpp -c ~/.config/ncmpcpp/config' alias 'cd..'='cd ..' -alias ',,'='..' alias '...'='../..' alias mkdir='mkdir -vp' alias 'please?'='sudo $(history | tail -n1 | cut -c 8-)' |