Skip to content

Commit

Permalink
✨ set bin directory to /home/ptavares/.local/bin instead of /home/pta…
Browse files Browse the repository at this point in the history
…vares/bin
  • Loading branch information
ptavares committed Aug 10, 2021
1 parent 0d7d6a8 commit f3b81d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zsh-tfswitch.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ update_zsh_tfswitch() {

_zsh_tfswitch_load() {
# export PATH
export PATH=${PATH}:${TFSWITCH_HOME}:$HOME/bin
export PATH=${PATH}:${TFSWITCH_HOME}
}

# install tfswitch if it isnt already installed
Expand All @@ -106,6 +106,8 @@ load-tfswitch() {
fi
}

alias tfswitch='tfswitch --bin=$HOME/.local/bin/terraform'

unset -f _zsh_tfswitch_install _zsh_tfswitch_load

add-zsh-hook chpwd load-tfswitch
Expand Down

0 comments on commit f3b81d8

Please sign in to comment.