Last active
October 19, 2021 15:36
-
-
Save Aysnine/676177a71af1e3291e3d7946b8c5dfe1 to your computer and use it in GitHub Desktop.
Mac + iTerm2 + zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
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 '{}' +" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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