mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-17 21:09:25 +00:00
Don't bother checking for go apps if Go isn't ready
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
# User specific environment
|
||||||
|
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||||
|
export PATH
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] "
|
export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] "
|
||||||
|
|
||||||
@@ -19,6 +23,11 @@ if [ -d /usr/local/go ]; then
|
|||||||
export GOROOT=/usr/local/go/
|
export GOROOT=/usr/local/go/
|
||||||
export GOPATH=$HOME/go/
|
export GOPATH=$HOME/go/
|
||||||
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
|
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
|
||||||
|
|
||||||
|
# https://github.com/oz/tz
|
||||||
|
if [ -f $HOME/go/bin/tz ]; then
|
||||||
|
export TZ_LIST="America/New_York,America/Los_Angeles,Europe/Paris"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OSX Specific envs
|
# OSX Specific envs
|
||||||
@@ -33,7 +42,3 @@ if [ $(uname) == "Darwin" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/oz/tz
|
|
||||||
if [ -f $HOME/go/bin/tz ]; then
|
|
||||||
export TZ_LIST="America/New_York,America/Los_Angeles,Europe/Paris"
|
|
||||||
fi
|
|
||||||
|
|||||||
12
bash/.bashrc
12
bash/.bashrc
@@ -5,9 +5,10 @@ if [ -f /etc/bashrc ]; then
|
|||||||
. /etc/bashrc
|
. /etc/bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# User specific environment
|
# Source exports, if it exists
|
||||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
if [ -f $HOME/.bash/exports.bash ]; then
|
||||||
export PATH
|
source $HOME/.bash/exports.bash
|
||||||
|
fi
|
||||||
|
|
||||||
# Source functions, if it exists
|
# Source functions, if it exists
|
||||||
if [ -f $HOME/.bash/functions.bash ]; then
|
if [ -f $HOME/.bash/functions.bash ]; then
|
||||||
@@ -19,11 +20,6 @@ if [ -f $HOME/.bash/aliases.bash ]; then
|
|||||||
source $HOME/.bash/aliases.bash
|
source $HOME/.bash/aliases.bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source exports, if it exists
|
|
||||||
if [ -f $HOME/.bash/exports.bash ]; then
|
|
||||||
source $HOME/.bash/exports.bash
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source completions, if it exists
|
# Source completions, if it exists
|
||||||
if [ -f $HOME/.bash/exports.bash ]; then
|
if [ -f $HOME/.bash/exports.bash ]; then
|
||||||
source $HOME/.bash/completions.bash
|
source $HOME/.bash/completions.bash
|
||||||
|
|||||||
Reference in New Issue
Block a user