forked from geerlingguy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
132 lines (99 loc) · 4.06 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export PATH=$HOME/Library/Python/3.9/bin:/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:$HOME/bin:$HOME/go/bin:/opt/homebrew/bin/git:$PATH
export PATH=$HOME/.bin:/usr/local/bin:$HOME/.dotnet:$HOME/.dotnet/tools:$HOME/workspace/mac-dev-playbook/bin:$PATH
export PATH=/opt/homebrew/opt/gnu-sed/libexec/gnubin:/usr/local/opt/libpq/bin:$PATH
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin":$PATH
export PATH="/Users/andrew/Library/Application Support/JetBrains/Toolbox/scripts:$PATH"
export DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
export ZSH="$HOME/.oh-my-zsh"
export LANG=en_US.UTF-8
POWERLEVEL10K_MODE='nerdfont-complete'
plugins=(
git
jsontools
macos
pod
sudo
textmate
web-search
z
kubectl
)
source $ZSH/oh-my-zsh.sh
source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme
alias reload='source ~/.zshrc'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export LS_CMD="gls --color=auto"
alias ls="$LS_CMD"
alias ll="$LS_CMD -alh"
alias la="$LS_CMD -A"
alias l="$LS_CMD -lahrtc"
alias gs="git status"
alias gst="git status"
alias gadd="git add -A && git status -sb"
alias update_submodules="git pull --recurse-submodules && git submodule update"
alias gp="git push origin HEAD -u"
alias gb="git co -b"
alias gd="git diff"
alias gk="gitk 2> /dev/null"
alias gcm="git commit -m"
alias grh_git_reset_hard="git reset --hard"
alias pull="git pull"
alias gpr_git_pull_rebase="git pull --rebase"
alias push="git push"
# Syntax highlighting for less (-R for RAW ^ colors)
alias less='less -R'
alias path='echo $PATH'
# Interactive delete
alias rm='rm -i'
# Verbosely show progress for move and copy
alias cp='cp -v'
alias mv='mv -v'
alias tf="terraform"
cleandd() {
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "Removed all derived data."
}
alias cleardd=cleandd
# Generate UUID and copy to clipboard
alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo"
alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
alias rider="$HOME/workspace/mac-dev-playbook/bin/rider.sh"
alias kubecfg1p="$HOME/workspace/mac-dev-playbook/bin/set-kubeconfig-from-1password.sh"
alias stop='./scripts/stop.sh'
alias start='./scripts/start.sh'
alias build='./scripts/build.sh'
alias nuke='./scripts/nuke.sh'
alias preload='./scripts/preload-data.sh'
function ShowTitle() {
local title=$1
local folder=$2
clear
figlet -w 1000 -f starwars "$title" | lolcat -S 120
}
alias rvcl='ShowTitle "RVChecklist" && cd ~/workspace/rvchecklist'
alias louie='ShowTitle "Louie.Camp" && cd ~/workspace/louie-camp'
alias df='ShowTitle "dotfiles" && cd ~/workspace/dotfiles'
alias mdp='ShowTitle "mac-dev-playbook" && cd ~/workspace/mac-dev-playbook'
alias ws='ShowTitle "workspace" && cd ~/workspace'
export NVM_DIR="$HOME/.nvm"
[ -s "$(brew --prefix)/opt/nvm/nvm.sh" ] && . "$(brew --prefix)/opt/nvm/nvm.sh" # This loads nvm
[ -s "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" ] && . "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_HISTORY_IGNORE="(cd *|curl *|wget *)"
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
bindkey '^I' forward-word
alias copilot="gh copilot"
alias gcs="gh copilot suggest --shell-out=/bin/sh"
alias gce="gh copilot explain"
eval "$(rbenv init - --no-rehash zsh)"