summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
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