added goenv, tmux, and pyenv plugins.

This commit is contained in:
Wes Key
2021-12-14 20:26:40 -05:00
committed by Koichi Murase
parent 812a8d60ef
commit 35184a8e41
6 changed files with 32 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# goenv plugin
The goenv plugin will configure goenv paths and configure goenv to manage GOROOT and GOHOME.
+12
View File
@@ -0,0 +1,12 @@
# @chopnico 2021
# goenv exported variables
export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
# Enables goenv shims
eval "$(goenv init -)"
# Allows goenv to manage GOPATH and GOROOT
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
+3
View File
@@ -0,0 +1,3 @@
# pyenv plugin
The pyenv plugin will configure pyenv paths.
+8
View File
@@ -0,0 +1,8 @@
# @chopnico 2021
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
+3
View File
@@ -0,0 +1,3 @@
# tmux plugin
The tmux plugin will either attach or create a new tmux session for each bash session. If a session already exists, it will simply attach.
+3
View File
@@ -0,0 +1,3 @@
# @chopnico 2021
[ -z "$TMUX" ] && { tmux -2 -u attach || exec tmux -2 -u new-session && exit;}