From c2eeaebfab6014a9369d4b94b13ca77bc1eec776 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 18 Jan 2015 16:19:40 +0100 Subject: misc Signed-off-by: Florian Pritz --- .zshrc | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index f83b7da..86dd89f 100644 --- a/.zshrc +++ b/.zshrc @@ -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 -- cgit v1.2.3-24-g4f1b