This commit is contained in:
= 2024-07-15 10:28:50 -06:00
parent 4ff91943f7
commit 1b62c5b2a3
3 changed files with 29 additions and 16 deletions

11
zsh/.aliasrc Normal file
View 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

View File

@ -1,16 +1,2 @@
# Set PATH, MANPATH, etc., for Homebrew.
if [[ "${uname}" != "Darwin" ]]
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
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

View File

@ -112,7 +112,23 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# 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.
[[ ! -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