From ae76755ed7fd3e12a50123bc99b725e0b3225764 Mon Sep 17 00:00:00 2001 From: pks Date: Sat, 24 Jul 2021 15:26:44 +0200 Subject: WIP --- zsh/.zshrc | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 0575aa2..14926af 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -175,8 +175,18 @@ export MANPATH=$MANPATH:$HOME/.local/share/man export GOPATH=$HOME/.local +# local_bin +if [[ -d ~/local_bin ]]; then + export PATH=~/local_bin:$PATH +elif [[ -d ~/.sync/local_bin ]]; then + export PATH=~/.sync/local_bin:$PATH +fi + +# nlp_scripts if [[ -d ~/nlp_scripts ]]; then export PATH=~/nlp_scripts:$PATH +elif [[ -d ~/.sync/nlp_scripts ]]; then + export PATH=~/.sync/nlp_scripts:$PATH fi if [[ -d /usr/lib/colorgcc/bin ]]; then @@ -215,6 +225,7 @@ export CFLAGS="-march=native -mtune=native" export CXXFLAGS="$CFLAGS" export CCACHE_PATH=/usr/bin + case $_HOST_TYPE in Linux) case $_USERNAME in @@ -225,12 +236,29 @@ case $_HOST_TYPE in ;; esac +function source_something { + if [[ -f $1 ]]; then + source $1; + fi +} + +source_something ~/.zshrc.personal +source_something ~/.zshrc.work +source_something ~/.local/src/zoxide/zoxide.plugin.zsh +export MCFLY_KEY_SCHEME=vim +export MCFLY_FUZZY=true +export MCFLY_RESULTS=48 +source_something /usr/share/mcfly/mcfly.zsh + # ############################################################################# # terminal # ############################################################################# case $TERM in screen-256color) ;; + rxvt) + TERM=rxvt-256color + ;; *) TERM=xterm-256color ;; @@ -374,10 +402,3 @@ if [[ $_HOST_TYPE == "Linux" ]]; then alias lp8p='/usr/bin/lp -o sides=two-sided-short-edge -o number-up=4 -o landscape' alias lpimg='/usr/bin/lp -o fit-to-page' fi - -if [[ -f ~/.zshrc.personal ]]; then - source ~/.zshrc.personal -fi -if [[ -f ~/.zshrc.work ]]; then - source ~/.zshrc.work -fi -- cgit v1.2.3