summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-07-24 15:26:44 +0200
committerpks <pks@pks.rocks>2021-07-24 15:26:44 +0200
commitae76755ed7fd3e12a50123bc99b725e0b3225764 (patch)
tree363b50e0728796b3643d5509338846213cf34c95 /zsh
parentfecc65a07e2c4a6f3200f8677ab20705e46b8857 (diff)
WIP
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc35
1 files changed, 28 insertions, 7 deletions
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