Skip to content

Instantly share code, notes, and snippets.

@dmigo
Last active June 23, 2025 20:12
Show Gist options
  • Save dmigo/9aafd00a5fa7c22e2f6d6e7e6430bca8 to your computer and use it in GitHub Desktop.
Save dmigo/9aafd00a5fa7c22e2f6d6e7e6430bca8 to your computer and use it in GitHub Desktop.
# PATH manipulations
## Kubectl Krew
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
## Node
export PATH="/opt/homebrew/opt/node@22/bin:$PATH"
# Starship
eval "$(starship init zsh)"
# Syntax highlighting
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Autosuggestions
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Configure autocomplete
source /opt/homebrew/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
# Configure Zoxide(better cd) and fuzzy finder
source <(fzf --zsh)
eval "$(zoxide init zsh)"
## For compilers to find node@22 you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/node@22/lib"
export CPPFLAGS="-I/opt/homebrew/opt/node@22/include"
# Aliases
alias ls='ls -G'
alias grep='grep --color=auto'
alias ..='z ..'
alias ...='z ../..'
alias ....='z ../../..'
alias .....='z ../../../..'
alias ......='z ../../../../..'
alias cd='z'
alias g='git'
alias weather='curl v2.wttr.in'
alias stat=htop
alias k=kubectl
alias kai=kubectl-ai
alias l='eza -la --icons'
alias ll='eza -la --icons'
alias tree='eza -a --tree --long --icons'
alias tracert='traceroute'
alias uuid='uuidgen | tr A-Z a-z | pbcopy'
alias mk='minikube'
alias c=code
# Utility Functions
func zshconfig(){
vim ~/.zshrc
source ~/.zshrc
}
func vimconfig(){
vim ~/.vimrc
}
func test(){
echo test
}
func killport(){
# Still in development
echo "lsof -t -i:$1"
kill -9 `lsof -t -i:$1`
}
func cht(){
curl cht.sh/$1/$2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment