Skip to content

Instantly share code, notes, and snippets.

@gyorgygutai
Last active February 5, 2025 09:15
Show Gist options
  • Select an option

  • Save gyorgygutai/145d0686c91a1be64211ed75a24c5ad4 to your computer and use it in GitHub Desktop.

Select an option

Save gyorgygutai/145d0686c91a1be64211ed75a24c5ad4 to your computer and use it in GitHub Desktop.
my zshrc
alias {l,ll}="ls -lah"
# start interactive
alias si='$(mdfind "kMDItemUserTags == '\''Blue'\''" | fzf | xargs)'
# cd interactive
alias cdi='cd $(mdfind "kMDItemUserTags == '\''Purple'\''" | fzf | xargs)'
# enable git autocomplete
autoload -Uz compinit && compinit
# forward git aliases gs -> git s
for al in `git --list-cmds=alias`; do
alias g$al="git $al"
done
# git config
alias {gitc,gitconf,gitconfig}="code $HOME/.gitconfig"
# cisco secure client
alias vpc="/opt/cisco/secureclient/bin/vpn -s < $ZSH_CUSTOM/.login_info"
alias vpdc="/opt/cisco/secureclient/bin/vpn disconnect"
# brew
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# php
alias php74="/opt/homebrew/opt/[email protected]/bin/php"
alias php81="/opt/homebrew/opt/[email protected]/bin/php"
# default editor
export EDITOR=nano
# direnv
eval "$(direnv hook zsh)"
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment