Skip to content

Instantly share code, notes, and snippets.

@drorata
Last active February 11, 2020 07:55
Show Gist options
  • Save drorata/7756d71640cd647e74e8b6434173bda1 to your computer and use it in GitHub Desktop.
Save drorata/7756d71640cd647e74e8b6434173bda1 to your computer and use it in GitHub Desktop.
ZSH setting
source ~/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
# antigen bundle pip
antigen bundle aws
antigen bundle docker
antigen bundle brew
antigen bundle osx
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle Cloudstek/zsh-plugin-appup
antigen bundle esc/conda-zsh-completion
antigen theme denysdovhan/spaceship-prompt
# POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
# antigen theme bhilburn/powerlevel9k powerlevel9k
SPACESHIP_DIR_TRUNC=0
SPACESHIP_DIR_TRUNC_REPO="false"
SPACESHIP_TIME_SHOW="true"
SPACESHIP_EXIT_CODE_SHOW="true"
antigen apply
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('$HOME/anaconda3/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "$HOME/anaconda3/etc/profile.d/conda.sh" ]; then
. "$HOME/anaconda3/etc/profile.d/conda.sh"
else
export PATH="$HOME/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
source ~/Applications/conda-auto-env/conda_auto_env.sh
export JAVA_HOME="$(/usr/libexec/java_home --version 1.8)"
export EDITOR='vim'
export BROWSER=open
# You may need to manually set your language environment
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
alias ls="ls -Gppha"
alias ll="ls -Gplpha"
alias ..="cd .."
alias vs="code"
alias m='make'
alias nb='jupyter notebook'
alias jl='jupyter-lab'
alias catc='pygmentize -g'
alias diff=colordiff
alias cs=clear
alias black=$HOME/anaconda3/bin/black
function docker_kill() {
docker kill $(docker ps -a -q)
}
function docker_remove() {
docker rm $(docker ps -a -q)
}
function docker_iremove_dangling() {
docker rmi $(docker images -f dangling=true -q)
}
function s3zcat() {
aws s3 cp $1 - | zcat
}
function s3cat() {
aws s3 cp $1 - | cat
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment