mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-23 15:59:21 +00:00
Switch to a common shell settings between bash and zsh
This commit is contained in:
@@ -1,44 +1,2 @@
|
||||
# User specific environment
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
# 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\] "
|
||||
|
||||
# User specific environment and startup programs
|
||||
export TZ=GB
|
||||
export LANG=en_GB.UTF-8
|
||||
|
||||
# Make a sensible editor choice
|
||||
if [ -x /usr/bin/nano ]; then
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
else
|
||||
export EDITOR=vi
|
||||
export VISUAL=vi
|
||||
fi
|
||||
|
||||
# Go stuff
|
||||
if [ -d /usr/local/go ]; then
|
||||
export GOROOT=/usr/local/go/
|
||||
export GOPATH=$HOME/go/
|
||||
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
|
||||
|
||||
# OSX Specific envs
|
||||
if [ $(uname) == "Darwin" ]; then
|
||||
# Shhh Catlina, we don't care!
|
||||
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||
|
||||
# M1 specific hacks
|
||||
if [ $(uname -p) == "arm" ]; then
|
||||
# Stop golang progs having fun with Rosetta 2 (https://yaleman.org/post/2021/2021-01-01-apple-m1-terraform-and-golang/)
|
||||
export GODEBUG=asyncpreemptoff=1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user