Skip to content

Instantly share code, notes, and snippets.

@Aysnine
Last active October 19, 2021 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aysnine/676177a71af1e3291e3d7946b8c5dfe1 to your computer and use it in GitHub Desktop.
Save Aysnine/676177a71af1e3291e3d7946b8c5dfe1 to your computer and use it in GitHub Desktop.
Mac + iTerm2 + zsh
#...
ZSH_THEME="geoffgarside"
#...
plugins=(
osx
extract
git github
yarn npm
docker docker-compose kubectl
vagrant vagrant-prompt
zsh-autosuggestions
zsh-history-substring-search
zsh-syntax-highlighting
zsh-completions
)
#...
### CUSTOM
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
export ADBLOCK=true
export DISABLE_OPENCOLLECTIVE=true
export PROMPT='%{$fg[cyan]%}%*%{$reset_color%} %{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %{$fg_bold[cyan]%}%(!.#.$) '
export ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg_bold[blue]%}("
export LESS="-SR"
listening() {
if [ $# -eq 0 ]; then
sudo lsof -iTCP -sTCP:LISTEN -n -P
elif [ $# -eq 1 ]; then
sudo lsof -iTCP -sTCP:LISTEN -n -P | grep -i --color $1
else
echo "Usage: listening [pattern]"
fi
}
alias cf="vim ~/.zshrc"
alias fuck_node="find . -name "node_modules" -exec rm -rf '{}' +"
touch ~/.hushlogin
cd $ZSH_CUSTOM/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git
git clone https://github.com/zsh-users/zsh-history-substring-search.git
git clone https://github.com/zsh-users/zsh-completions.git
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment