aboutsummaryrefslogtreecommitdiffhomepage
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile13
1 files changed, 6 insertions, 7 deletions
diff --git a/profile b/profile
index 03b8f9b..b5f2969 100644
--- a/profile
+++ b/profile
@@ -1,8 +1,7 @@
1# trap 'exit.sh' EXIT 1# trap 'exit.sh' EXIT
2 2
3export PATH=~/.local/bin:$PATH 3export PATH=~/.local/bin:$PATH
4export PATH=~/go/bin:$PATH 4export HELPER_DIR=${HELPER_DIR:=$HOME/helper}
5export SETTING_DIR=${SETTING_DIR:=$HOME/helper}
6export TERM=xterm-256color 5export TERM=xterm-256color
7export XDG_CONFIG_HOME=~/.config 6export XDG_CONFIG_HOME=~/.config
8export XDG_STATE_HOME=~/.local/share/ 7export XDG_STATE_HOME=~/.local/share/
@@ -34,12 +33,12 @@ shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]')
34export shell=${shell##*/} 33export shell=${shell##*/}
35 34
36# load custom aliases 35# load custom aliases
37source $SETTING_DIR/alias 36source $HELPER_DIR/alias
38 37
39# sourcr rc files in private/ and bin/ 38# sourcr rc files in private/ and bin/
40[[ -d $SETTING_DIR/private ]] && for f in $SETTING_DIR/private/*; do source $f; done 39[[ -d $HELPER_DIR/private ]] && for f in $HELPER_DIR/private/*; do source $f; done
41find $SETTING_DIR/bin -not -executable -name '*rc' | while read rcfile; do source $rcfile; done 40find $HELPER_DIR/bin -not -executable -name '*rc' | while read rcfile; do source $rcfile; done
42find $SETTING_DIR/bin -mindepth 1 -type d | while read dir; do PATH+=:${dir}; done 41find $HELPER_DIR/bin -mindepth 1 -type d | while read dir; do PATH+=:${dir}; done
43 42
44# fzf 43# fzf
45if which fzf &>/dev/null; then 44if which fzf &>/dev/null; then
@@ -54,7 +53,7 @@ fi
54if [[ $- =~ i ]]; then 53if [[ $- =~ i ]]; then
55 if [[ $shell == zsh ]]; then 54 if [[ $shell == zsh ]]; then
56 setopt extended_glob interactive_comments 55 setopt extended_glob interactive_comments
57 fpath=($SETTING_DIR/zsh $fpath) 56 fpath=($HELPER_DIR/zsh $fpath)
58 alias history='history -i' 57 alias history='history -i'
59 autoload compinit; compinit 58 autoload compinit; compinit
60 59