mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
added goenv, tmux, and pyenv plugins.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# goenv plugin
|
||||
|
||||
The goenv plugin will configure goenv paths and configure goenv to manage GOROOT and GOHOME.
|
||||
@@ -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"
|
||||
@@ -0,0 +1,3 @@
|
||||
# pyenv plugin
|
||||
|
||||
The pyenv plugin will configure pyenv paths.
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -0,0 +1,3 @@
|
||||
# @chopnico 2021
|
||||
|
||||
[ -z "$TMUX" ] && { tmux -2 -u attach || exec tmux -2 -u new-session && exit;}
|
||||
Reference in New Issue
Block a user