diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-01-18 16:19:40 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-01-18 16:19:40 +0100 |
commit | c2eeaebfab6014a9369d4b94b13ca77bc1eec776 (patch) | |
tree | 115cb1632cdbc7edcc53cf79400086aba5aedc66 /.zshrc | |
parent | 3ea02b6520c05f0f696caf68ad9fe947177af228 (diff) | |
download | dotfiles-c2eeaebfab6014a9369d4b94b13ca77bc1eec776.tar.gz dotfiles-c2eeaebfab6014a9369d4b94b13ca77bc1eec776.tar.xz |
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -17,7 +17,20 @@ if [ $UID -eq 0 ]; then export PATH=/root/bin:$PATH fi +# Exports {{{ +# TODO: move these to file and load in .xinitrc? +# XDG directories +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_DATA_HOME="$HOME/.local/share" + +#export MPV_HOME="$XDG_CONFIG_HOME/mpv" + +# Work around pssh hanging due to multiplexer not closing stdin +export PSSH_OPTIONS='ControlPersist=no' + +# }}} # Colors {{{ #use these in functions/shell scripts export NC='\e[0m' @@ -269,8 +282,8 @@ chpwd() { # idea by Gigamo http://bbs.archlinux.org/viewtopic.php?pid=478094#p478094 ls () { - /bin/ls -rhbtF --color=auto $@ && - echo "${MAGENTA}Files: ${BLUE}$(/bin/ls -l $@ | grep -v "^[l|d|total]" | wc -l) ${GREEN}--- ${MAGENTA}Directories: ${BLUE}$(/bin/ls -l $@ | grep "^d" | wc -l)${NC}" + /bin/ls -rhbtF --color=auto "$@" #&& + #echo "${MAGENTA}Files: ${BLUE}$(/bin/ls -l $@ | grep -v "^[l|d|total]" | wc -l) ${GREEN}--- ${MAGENTA}Directories: ${BLUE}$(/bin/ls -l $@ | grep "^d" | wc -l)${NC}" } ctailf() { @@ -357,9 +370,9 @@ hless() { # }}} # History {{{ -export HISTFILE=~/.zsh/histfile -export HISTSIZE=10000 -export SAVEHIST=5000000 +HISTFILE=~/.zsh/histfile +HISTSIZE=10000 +SAVEHIST=5000000 # }}} # Other ZSH options {{{ autoload -U colors |