Update dotfiles/.profile, dotfiles/.bashrc, dotfiles/.zshrc
This commit is contained in:
parent
d731cea0db
commit
67b6cb3071
3 changed files with 28 additions and 19 deletions
|
@ -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\]"
|
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
|
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
|
fi
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
|
|
@ -229,18 +229,9 @@ export EDITOR="vim"
|
||||||
# Don’t clear the screen after quitting a manual page
|
# Don’t clear the screen after quitting a manual page
|
||||||
export MANPAGER="less -X"
|
export MANPAGER="less -X"
|
||||||
|
|
||||||
# Prefer US English and use UTF-8
|
# Set language
|
||||||
if [ -e locale-gen ]; then
|
|
||||||
export LC_ALL="en_US.UTF-8"
|
|
||||||
fi
|
|
||||||
export LANG="en_US"
|
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
|
### .local/bin
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
|
|
||||||
|
@ -264,16 +255,16 @@ if [ -e /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
### Go
|
### Go
|
||||||
export GOPATH="${HOME}/.local/go"
|
export GOPATH="${HOME}/.local/go"
|
||||||
export GOROOT="$(brew --prefix golang)/libexec"
|
export GOROOT="$(brew --prefix golang)/libexec"
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
|
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
|
||||||
|
|
||||||
### ASDF
|
### ASDF
|
||||||
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
||||||
. $(brew --prefix asdf)/libexec/asdf.sh
|
. $(brew --prefix asdf)/libexec/asdf.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Android Studio
|
### Android Studio
|
||||||
|
|
|
@ -151,6 +151,15 @@ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
|
||||||
;;
|
;;
|
||||||
esac
|
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 ---------------------------------
|
# ------------------------------- ZSH PLUGINS ---------------------------------
|
||||||
# Plugin source helper
|
# Plugin source helper
|
||||||
_source_plugin() {
|
_source_plugin() {
|
||||||
|
|
Loading…
Reference in a new issue