mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-23 05:49:55 +00:00
Move hooks to their own file
This commit is contained in:
parent
6681bd24ff
commit
3220e8c380
3 changed files with 15 additions and 11 deletions
10
dot_hooks
Normal file
10
dot_hooks
Normal file
|
@ -0,0 +1,10 @@
|
|||
if [ -f $HOME/.rbenv/bin/rbenv ]; then
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
eval "$(rbenv init -)"
|
||||
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
|
||||
fi
|
||||
|
||||
if [ $(command -v n) ]; then
|
||||
export N_PREFIX=$HOME/.n
|
||||
export PATH="$HOME/.n/bin:$PATH"
|
||||
fi
|
|
@ -5,6 +5,9 @@ if [ -f /etc/bashrc ]; then
|
|||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# Hook virtual environment modifers
|
||||
source $HOME/.hooks
|
||||
|
||||
# User specific environment
|
||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
||||
then
|
||||
|
|
|
@ -59,6 +59,8 @@ HYPHEN_INSENSITIVE="true"
|
|||
ENABLE_CORRECTION="true"
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
source $HOME/.hooks
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
|
@ -74,17 +76,6 @@ fi
|
|||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
# >>> rbenv initialize >>>
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
eval "$(rbenv init -)"
|
||||
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
|
||||
# <<< rbenv initialize <<<
|
||||
|
||||
# >>> n initalize >>>
|
||||
export N_PREFIX=$HOME/.n
|
||||
export PATH="$HOME/.n/bin:$PATH"
|
||||
# <<< n initialize <<<
|
||||
|
||||
# >>> direnv initalize >>>
|
||||
eval "$(direnv hook zsh)"
|
||||
# <<< direnv initalize <<<
|
||||
|
|
Loading…
Reference in a new issue