Update dotfiles/.profile, dotfiles/.bashrc, dotfiles/.zshrc

This commit is contained in:
Brian Zalewski 2022-10-25 21:50:59 +00:00
parent d731cea0db
commit 67b6cb3071
3 changed files with 28 additions and 19 deletions

View file

@ -143,6 +143,15 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
PS1="\n \[\033[0;34m\]╭─\[\033[0;31m\]\[\033[0;37m\]\[\033[41m\] $OS_ICON \u \[\033[0m\]\[\033[0;31m\]\[\033[44m\]\[\033[0;34m\]\[\033[44m\]\[\033[0;30m\]\[\033[44m\] \w \[\033[0m\]\[\033[0;34m\] \n \[\033[0;34m\]╰ \[\033[1;36m\]\$ \[\033[0m\]"
;;
esac
# https://github.com/trapd00r/LS_COLORS
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
if type gdircolors &> /dev/null && [ -f "$HOME/.config/dircolors" ]; then
eval "$(gdircolors -b "$HOME/.config/dircolors")"
fi
# Prefer US English
export LC_ALL="en_US.UTF-8"
fi
### Miscellaneous

View file

@ -229,18 +229,9 @@ export EDITOR="vim"
# Dont clear the screen after quitting a manual page
export MANPAGER="less -X"
# Prefer US English and use UTF-8
if [ -e locale-gen ]; then
export LC_ALL="en_US.UTF-8"
fi
# Set language
export LANG="en_US"
# https://github.com/trapd00r/LS_COLORS
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
if type gdircolors &> /dev/null && [ -f "$HOME/.config/dircolors" ]; then
eval "$(gdircolors -b "$HOME/.config/dircolors")"
fi
### .local/bin
export PATH="$PATH:$HOME/.local/bin"
@ -264,16 +255,16 @@ if [ -e /home/linuxbrew/.linuxbrew/bin/brew ]; then
fi
if command -v brew > /dev/null; then
### Go
export GOPATH="${HOME}/.local/go"
export GOROOT="$(brew --prefix golang)/libexec"
export GO111MODULE=on
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
### Go
export GOPATH="${HOME}/.local/go"
export GOROOT="$(brew --prefix golang)/libexec"
export GO111MODULE=on
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
### ASDF
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
. $(brew --prefix asdf)/libexec/asdf.sh
fi
### ASDF
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
. $(brew --prefix asdf)/libexec/asdf.sh
fi
fi
### Android Studio

View file

@ -151,6 +151,15 @@ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
;;
esac
# https://github.com/trapd00r/LS_COLORS
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
if type gdircolors &> /dev/null && [ -f "$HOME/.config/dircolors" ]; then
eval "$(gdircolors -b "$HOME/.config/dircolors")"
fi
# Prefer US English
export LC_ALL="en_US.UTF-8"
# ------------------------------- ZSH PLUGINS ---------------------------------
# Plugin source helper
_source_plugin() {