Skip to content

Instantly share code, notes, and snippets.

@cchudant
Created September 6, 2021 12:31
Show Gist options
  • Save cchudant/66bb1336223ecba78cfdcdb037299f57 to your computer and use it in GitHub Desktop.
Save cchudant/66bb1336223ecba78cfdcdb037299f57 to your computer and use it in GitHub Desktop.
42 zshrc
export ZSH="/Users/cchudant/.oh-my-zsh"
precmd() {}
ZSH_THEME="bira"
plugins=(git chucknorris)
source $ZSH/oh-my-zsh.sh
# vim
export VIM=vim
export EDITOR=code
alias vim=$VIM
alias nvim=$VIM
alias vi=$VIM
alias v=$VIM
alias vimrc="$EDITOR ~/.vimrc"
alias zshrc="$EDITOR ~/.zshrc"
alias zshrcapply="source ~/.zshrc"
source /Users/cchudant/.Sublivim/sublivimrc.sh
# goinfre
wait4path ~/goinfre
makegoinfre() { [ -e ~/goinfre/$1 ] || mkdir ~/goinfre/$1 }
makegoinfre ""
makegoinfre "vscode-cpptools"
makegoinfre ".minikube"
makegoinfre ".rustup"
makegoinfre ".brew"
install_brew() { rm -rf ~/goinfre/.brew && git clone --depth=1 https://github.com/Homebrew/brew ~/goinfre/.brew && brew update }
install_rustup() { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh }
ssh-cred() { eval $(ssh-agent); ssh-add }
# utility
#logout() { osascript -e 'tell application "System Events" to log out' }
logout() { launchctl bootout user/$(id -u "$USER") } # force
locksess() { pmset displaysleepnow }
# brew
export PATH=$HOME/.brew/bin:$PATH
# vscode
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin/"
# miniconda3
export PATH=/goinfre/anaconda3/bin:$PATH
export PATH=$HOME/.brew/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment