function setup_env set -l envs (keychain --eval -q) for expr in $envs; set -l nexpr (echo $expr | sed "s/^\([^=]*\)=\([^;]*\); export.*/set -x -g \1 \2/") eval $nexpr end; set -g -x BROWSER "iceweasel" set -g -x XDG_DOWNLOAD_DIR "$HOME/store" set -g -x EDITOR "zile" set -g -x LC_ALL "en_ZA.UTF-8" set -g -x PATH /usr/local/bin $PATH {$HOME}/bin . set -g -x SUDO_EDITOR "zile" set -g -x TERMINAL "st" set -g -x VISUAL "emacs" set -g -x USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0' set -g -x LESS "-S -R" set -g -x LESSCHARSET "utf-8" set -g -x LESSHISTFILE "-" set -g -x LS_COLORS 'rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:' set -g -x LESSOPEN "|/usr/bin/lesspipe.sh %s" set -g -x LESS_ADVANCED_PREPROCESSOR 1 stty -ixon umask 077 set fish_greeting set -g -x fish_color_operator cyan set -g -x fish_color_escape green set -g -x fish_pager_color_prefix --underline --bold 508050 set -g -x fish_color_search_match EAFFFF set -g -x fish_color_match EAEA9E set -g -x fish_color_selection darkgreen set -g -x fish_color_command 8888cc end