From: Hendrik Jäger Date: Thu, 29 Dec 2022 11:35:10 +0000 (+0100) Subject: fix: move exports to proper file .zprofile X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=c0943f0bcdf810bee6cb75632c514fb22bd88d53;p=user%2Fhenk%2Fvcsh%2Fzsh.git fix: move exports to proper file .zprofile --- diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..9947b36 --- /dev/null +++ b/.zprofile @@ -0,0 +1,124 @@ +# I want my own bins to take precedence +PATH="$HOME/bin:$HOME/usr/bin:$HOME/usr/local/bin:$HOME/.local/bin:$PATH" +# I want sbin executables available +PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin +# remove duplicates because tmux starts login shells +typeset -U path +export PATH + + +export DEBEMAIL=deb@henk.geekmail.org +#export BROWSER=iceweasel +export EDITOR=vim + + +# language should generally be english +export LANG="en_US.UTF-8" +export LC_MESSAGES="en_US.UTF-8" + +# everything else the local format +export LC_CTYPE="de_CH.UTF-8" +export LC_NUMERIC="de_CH.UTF-8" +export LC_TIME="de_CH.UTF-8" +export LC_COLLATE="de_CH.UTF-8" +export LC_MONETARY="de_CH.UTF-8" +export LC_PAPER="de_CH.UTF-8" +export LC_NAME="de_CH.UTF-8" +export LC_ADDRESS="de_CH.UTF-8" +export LC_TELEPHONE="de_CH.UTF-8" +export LC_MEASUREMENT="de_CH.UTF-8" +export LC_IDENTIFICATION="de_CH.UTF-8" + + +# do not use cowsay +export ANSIBLE_NOCOWS=1 +# better strategy for multiple hosts +export ANSIBLE_STRATEGY=mitogen_linear + + +# read settings from user directory +export TEXMFCNF=${HOME}/.texlive: + + +export FZF_DEFAULT_COMMAND='fdfind --type f' + + +# colors for newt/whiptail (for debconf, needrestart, etc.) +# works better with selenized colorscheme +# everything that seems irrelevant is set to brown +NEWT_COLORS='' +# foreground seems irrelevant +NEWT_COLORS="${NEWT_COLORS};root=brown,blue" +# text in the root window +NEWT_COLORS="${NEWT_COLORS};roottext=yellow,blue" + +# box/window/button shadows +NEWT_COLORS="${NEWT_COLORS};shadow=brown,black" + +# boxes/windows themselves +NEWT_COLORS="${NEWT_COLORS};window=brown,lightgray" +# box/window titles +NEWT_COLORS="${NEWT_COLORS};title=yellow,lightgray" +# box/window borders +NEWT_COLORS="${NEWT_COLORS};border=gray,lightgray" + +# full buttons +NEWT_COLORS="${NEWT_COLORS};button=black,red" +# compact buttons +NEWT_COLORS="${NEWT_COLORS};compactbutton=black,lightgray" +# selected/active button +NEWT_COLORS="${NEWT_COLORS};actbutton=green,gray" + +# checkbox itself and text +NEWT_COLORS="${NEWT_COLORS};checkbox=black,blue" +# selection marker for checkbox +NEWT_COLORS="${NEWT_COLORS};actcheckbox=yellow,gray" + +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};entry=yellow,brown" +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};disentry=brown,yellow" + +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};label=yellow,red" + +# unselected entries in menus +NEWT_COLORS="${NEWT_COLORS};listbox=lightgray,gray" +# selected entries in menus +NEWT_COLORS="${NEWT_COLORS};actsellistbox=yellow,blue" +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};actlistbox=brown,red" +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};sellistbox=black,brown" + +NEWT_COLORS="${NEWT_COLORS};textbox=black,lightgray" +NEWT_COLORS="${NEWT_COLORS};acttextbox=brown,green" + +# TODO FIXME: no clue what that is +NEWT_COLORS="${NEWT_COLORS};helpline=yellow,brown" + +# probably for gauges +NEWT_COLORS="${NEWT_COLORS};emptyscale=red" +NEWT_COLORS="${NEWT_COLORS};fullscale=blue" + +export NEWT_COLORS + +# black +# darkgray +# brown +# yellow +# +# blue +# cyan +# gray +# green +# magenta +# red +# +# lightblue +# lightcyan +# lightgray +# lightgreen +# lightmagenta +# lightred + diff --git a/.zshrc b/.zshrc index 6db5847..418f3ef 100644 --- a/.zshrc +++ b/.zshrc @@ -9,13 +9,6 @@ HISTFILE=~/.zsh_history HISTSIZE=1000000000 SAVEHIST=1000000000 -export ANSIBLE_NOCOWS=1 -export ANSIBLE_STRATEGY=mitogen_linear - -export TEXMFCNF=${HOME}/.texlive: - -export FZF_DEFAULT_COMMAND='fdfind --type f' - # what is that for exactly? maybe taskwarrior? or timewarrior? REPORTTIME=10 @@ -26,89 +19,6 @@ REPORTTIME=10 # zsh you-should-use export YSU_MODE=ALL -# I want sbin executables available -export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin -export PATH=${PATH}:~/bin - -# colors for newt/whiptail (for debconf, needrestart, etc.) -# works better with selenized colorscheme -# everything that seems irrelevant is set to brown -NEWT_COLORS='' -# foreground seems irrelevant -NEWT_COLORS="${NEWT_COLORS};root=brown,blue" -# text in the root window -NEWT_COLORS="${NEWT_COLORS};roottext=yellow,blue" - -# box/window/button shadows -NEWT_COLORS="${NEWT_COLORS};shadow=brown,black" - -# boxes/windows themselves -NEWT_COLORS="${NEWT_COLORS};window=brown,lightgray" -# box/window titles -NEWT_COLORS="${NEWT_COLORS};title=yellow,lightgray" -# box/window borders -NEWT_COLORS="${NEWT_COLORS};border=gray,lightgray" - -# full buttons -NEWT_COLORS="${NEWT_COLORS};button=black,red" -# compact buttons -NEWT_COLORS="${NEWT_COLORS};compactbutton=black,lightgray" -# selected/active button -NEWT_COLORS="${NEWT_COLORS};actbutton=green,gray" - -# checkbox itself and text -NEWT_COLORS="${NEWT_COLORS};checkbox=black,blue" -# selection marker for checkbox -NEWT_COLORS="${NEWT_COLORS};actcheckbox=yellow,gray" - -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};entry=yellow,brown" -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};disentry=brown,yellow" - -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};label=yellow,red" - -# unselected entries in menus -NEWT_COLORS="${NEWT_COLORS};listbox=lightgray,gray" -# selected entries in menus -NEWT_COLORS="${NEWT_COLORS};actsellistbox=yellow,blue" -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};actlistbox=brown,red" -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};sellistbox=black,brown" - -NEWT_COLORS="${NEWT_COLORS};textbox=black,lightgray" -NEWT_COLORS="${NEWT_COLORS};acttextbox=brown,green" - -# TODO FIXME: no clue what that is -NEWT_COLORS="${NEWT_COLORS};helpline=yellow,brown" - -# probably for gauges -NEWT_COLORS="${NEWT_COLORS};emptyscale=red" -NEWT_COLORS="${NEWT_COLORS};fullscale=blue" - -export NEWT_COLORS - -# black -# darkgray -# brown -# yellow -# -# blue -# cyan -# gray -# green -# magenta -# red -# -# lightblue -# lightcyan -# lightgray -# lightgreen -# lightmagenta -# lightred - # where zsh looks for functions fpath=(~/.zsh_functions $fpath) @@ -257,8 +167,6 @@ do done -typeset -U path - #zle -N zle-line-init #zle -N zle-keymap-select