alias
This commit is contained in:
parent
4ff91943f7
commit
1b62c5b2a3
11
zsh/.aliasrc
Normal file
11
zsh/.aliasrc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
alias_list=(
|
||||||
|
ll='ls -alF'
|
||||||
|
grep='grep --color=auto'
|
||||||
|
vi='nvim'
|
||||||
|
lpg='cd ~/git/lucidpoint'
|
||||||
|
ppg='cd ~/git/personal'
|
||||||
|
)
|
||||||
|
|
||||||
|
for alias_def in "${alias_list[@]}"; do
|
||||||
|
alias $alias_def
|
||||||
|
done
|
@ -1,16 +1,2 @@
|
|||||||
# Set PATH, MANPATH, etc., for Homebrew.
|
# Set PATH, MANPATH, etc., for Homebrew.
|
||||||
if [[ "${uname}" != "Darwin" ]]
|
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
then
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
if [[ ! -d "/Users/errol/.oh-my-zsh/custom/plugins/autoupdate" ]]; then
|
|
||||||
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/autoupdate
|
|
||||||
fi
|
|
||||||
if [[ ! -d "/Users/errol/.oh-my-zsh/custom/themes/powerlevel10k" ]]; then
|
|
||||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
|
||||||
fi
|
|
||||||
if [[ ! -d "/Users/errol/.oh-my-zsh/custom/plugins/zsh-completions" ]]; then
|
|
||||||
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
|
||||||
fi
|
|
||||||
|
18
zsh/.zshrc
18
zsh/.zshrc
@ -112,7 +112,23 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# Example aliases
|
# Example aliases
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
alias vi=nvim
|
|
||||||
|
if [[ -r ~/.aliasrc ]]; then
|
||||||
|
. ~/.aliasrc
|
||||||
|
fi
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
|
||||||
|
if [[ `uname` == "Linux" ]]
|
||||||
|
then
|
||||||
|
[[ ":$PATH:" != *":/home/errol/Applications:"* ]] && PATH="/home/errol/Applications:${PATH}"
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/errol/google-cloud-sdk/path.zsh.inc' ]; then . '/home/errol/google-cloud-sdk/path.zsh.inc'; fi
|
||||||
|
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/errol/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/errol/google-cloud-sdk/completion.zsh.inc'; fi
|
||||||
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
||||||
|
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user