Skip to content

Instantly share code, notes, and snippets.

@crsayen
Last active November 3, 2020 21:18
Show Gist options
  • Save crsayen/d335ceea1e980ec6a48258f9770f982a to your computer and use it in GitHub Desktop.
Save crsayen/d335ceea1e980ec6a48258f9770f982a to your computer and use it in GitHub Desktop.
.zshrc for iterm2
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
alias ls='lsd'
alias python=python3
alias pip=pip3
alias sshrestart='sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist'
# Path to your oh-my-zsh installation.
export ZSH="/Users/chris/.oh-my-zsh"
export PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/chris/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/bin/:/Users/chris/Library/Android/sdk/tools:/Users/chris/Library/Android/sdk/platform-tools"
ZSH_THEME="powerlevel10k/powerlevel10k"
ENABLE_CORRECTION="true"
plugins=(git zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# User configuration
alias zshconfig="code-insiders ~/.zshrc"
alias ohmyzsh="code-insiders ~/.oh-my-zsh"
alias code="code-insiders"
alias la="ls -a"
alias cht="~/bin/cht.sh"
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="$PATH:/Users/chris/dev/flutter/bin"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment