export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH" eval "$(/opt/homebrew/bin/brew shellenv)" # Mac rmds() { find . -type f -name ".DS_Store" -ls -delete } # Projects go() { cd ~/Projects/$1 } _go_auto_complete() { local file # iterate all files in a directory that start with our search string for file in ~/Projects/"$2"*; do # If the glob doesn't match, we'll get the glob itself, so make sure # we have an existing file. This check also skips entries # that are not a directory [[ -d $file ]] || continue # add the file without the ~/Projects/ prefix to the list of # autocomplete suggestions COMPREPLY+=( $(basename "$file") ) done } # .zshrc # complete -F _go_auto_complete go # Docker & Kubernetes up() { docker compose up -d $* } down() { docker compose down } run() { docker compose run --rm $* } kub() { kubectl $* }