Skip to content

Instantly share code, notes, and snippets.

@ericbaranowski
Last active November 29, 2022 20:22
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 ericbaranowski/04cc4b1e625686449bac4756f33b930c to your computer and use it in GitHub Desktop.
Save ericbaranowski/04cc4b1e625686449bac4756f33b930c to your computer and use it in GitHub Desktop.
curl -fsSL https://click.eric-b.com/zsh | bash
#!/bin/bash
set -e
set -u
set -x
if [[ -f $HOME/.zshrc ]]; then
mv $HOME/.zshrc $HOME/.zshrc.bak
fi
if [[ -f $HOME/.zhistory ]]; then
mv $HOME/.zhistory $HOME/.zhistory.bak
fi
if [[ -f $HOME/.zsh_history ]]; then
mv $HOME/.zsh_history $HOME/.zsh_history.bak
fi
if [[ -d $HOME/.oh-my-zsh ]]; then
mv $HOME/.oh-my-zsh $HOME/.oh-my-zsh.bak
fi
if [[ -d $HOME/.zinit ]]; then
mv $HOME/.zinit $HOME/.zinit.bak
fi
if [[ $(grep -E '^ID=' /etc/os-release) == 'ID=ubuntu' ]]; then
platform='ubuntu'
elif [[ $(grep -E '^ID=' /etc/os-release) == 'ID="centos"' ]]; then
platform='centos'
elif [[ $(grep -E '^ID=' /etc/os-release) == 'ID=clear-linux-os' ]]; then
platform='clearlinux'
elif [[ $(uname -s) == 'Darwin' ]]; then
platform='osx'
fi
# Get operating system
if [[ $platform == 'ubuntu' ]]; then
#sudo add-apt-repository -s -y ppa:longsleep/golang-backports
sudo sed -i -e 's/^# deb-src/deb-src/g' /etc/apt/sources.list && sudo apt-get update
if [[ ! -d $HOME/.goenv ]]; then
git clone https://github.com/syndbg/goenv.git ~/.goenv
fi
if [[ ! -d $HOME/.pyenv ]]; then
curl https://pyenv.run | bash
fi
if [[ ! -d $HOME/.nvm ]]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
fi
sudo apt-get install boxes fortune glances linuxlogo lolcat toilet toilet-fonts xcowsay -y
if [[ ! -f /usr/bin/zsh ]]; then
sudo apt-get build-dep aptitude curl git zsh -y && sudo apt-get install aptitude curl git zsh -y
fi
fi
if [[ $platform == 'clearlinux' ]]; then
sudo swupd bundle-add git zsh go-basic
git clone https://github.com/syndbg/goenv.git ~/.goenv
fi
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
wget https://gist.githubusercontent.com/ericbaranowski/04cc4b1e625686449bac4756f33b930c/raw/aliases.zsh
mv $HOME/aliases.zsh $HOME/.aliases.zsh
# Default settings
ZSH=${ZSH:-~/.oh-my-zsh}
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
BRANCH=${BRANCH:-master}
CHSH=yes RUNZSH=no KEEP_ZSHRC=yes sh install.sh
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/plugins/zsh-syntax-highlighting
git clone https://github.com/rutchkiwi/copyzshell.git $ZSH/custom/plugins/copyzshell
#sed -i -e 's/git/git copyzshell zsh-autosuggestions zsh-syntax-highlighting/g' ~/.zshrc
#sed -i -e 's/^ZSH_THEME.*/ZSH_THEME=random/g' ~/.zshrc
#sed -i -e 's/^# ZSH_THEME_RANDOM_CANDIDATES.*/ZSH_THEME_RANDOM_CANDIDATES=( "amuse" "aussiegeek" "avit" "bira" "candy" "crcandy" "darkblood" "dst" "dstufft" "duellj" "fino-time" "fino" "fox" "frisk" "frontcube" "funky" "gnzh" "intheloop" "itchy" "jispwoso" "jonathan" "josh" "jtriley" "juanghurtado" "junkfood" "kphoen" "linuxonly" "mortalscumbag" "murilasso" "peepcode" "pmcgee" "re5et" "refined" "rgm" "rixius" "rkj-repos" "simonoff" "smt" "Soliah" "sporty_256" "steeef" "strug" "suvash" "takashiyoshida" "tjkirch" "xiong-chiamiov" "xiong-chiamiov-plus" "ys" )/g' ~/.zshrc
#sed -i -e 's/^ZSH_THEME.*/ZSH_THEME="xiong-chiamiov-plus"/g' ~/.zshrc
#mkdir $HOME/.zinit
#git clone https://github.com/zdharma/zinit.git $HOME/.zinit/bin
bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
wget https://gist.githubusercontent.com/ericbaranowski/04cc4b1e625686449bac4756f33b930c/raw/zshrc
mv $HOME/zshrc $HOME/.zshrc
wget https://gist.githubusercontent.com/ericbaranowski/04cc4b1e625686449bac4756f33b930c/raw/ab.sh
mv $HOME/ab.sh /tmp/ab.sh
sudo chmod +x /tmp/ab.sh
linuxlogo -logo -a | toilet -f term | lolcat
echo ''
echo 'LOG BACK IN AND RUN:'
echo '/tmp/ab.sh'
# echo '' >> $HOME/.zshrc
# echo '#source $HOME/.aliases.zsh' >> $HOME/.zshrc
# echo '' >> $HOME/.zshrc
# echo '#export PATH="$JAVA_HOME/bin:$PATH"' >> $HOME/.zshrc
# echo '#export PATH="$HOME/.cargo/bin:$PATH"' >> $HOME/.zshrc
# echo '#export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"' >> $HOME/.zshrc
# echo '#export PATH="$HOME/.nvm/versions/node/v*/bin:$PATH"' >> $HOME/.zshrc
# echo '#export GOROOT="/usr/share/go"' >> $HOME/.zshrc
# echo '#export GOPATH="$HOME/go"' >> $HOME/.zshrc
# echo '#export PATH=$GOPATH/bin:$PATH' >> $HOME/.zshrc
# echo '#export PATH="$GOPATH/bin:$PATH"' >> $HOME/.zshrc
# echo '#export GOENV_ROOT="$HOME/.goenv"' >> $HOME/.zshrc
# echo '#export PATH="$GOENV_ROOT/bin:$PATH"' >> $HOME/.zshrc
# echo '#eval "$(goenv init -)"' >> $HOME/.zshrc
# echo '#export PATH="$GOROOT/bin:$PATH"' >> $HOME/.zshrc
# echo '#export PATH="$PATH:$GOPATH/bin"' >> $HOME/.zshrc
# echo '#export GOBIN="$GOPATH/bin"' >> $HOME/.zshrc
# echo '' >> $HOME/.zshrc
# echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $HOME/.zshrc
# echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> $HOME/.zshrc
# echo 'eval "$(pyenv init -)"' >> $HOME/.zshrc
# echo "TZ='America/New_York'; export TZ" >> $HOME/.zprofile
# echo 'To install ccat, run:'
# echo 'go install -v github.com/owenthereal/ccat@latest'
#!/bin/bash
set -e
set -u
set -x
#sudo rm -rf $HOME/aa.sh
sudo rm -rf $HOME/install.sh
pyenv install anaconda3-2022.05
wget https://gist.githubusercontent.com/ericbaranowski/04cc4b1e625686449bac4756f33b930c/raw/jupyter.service
sed -i -e "s/XXUSERXX/$(whoami)/g" $HOME/jupyter.service
sudo mv $HOME/jupyter.service /etc/systemd/system/jupyter.service
linuxlogo -logo -a | toilet -f term | lolcat
echo ''
echo 'ALL DONE, YAY!'
if [[ $(uname -s) == 'Linux' ]]; then
platform='kali'
elif [[ $(uname -s) == 'Darwin' ]]; then
platform='osx'
fi
# Get operating system
if [[ $platform == 'linux' ]]; then
elif [[ $platform == 'osx' ]]; then
# Custom Aliases
alias diff='/usr/local/bin/icdiff -r'
alias ibs='/usr/local/bin/brew info'
alias ibc='/usr/local/bin/brew info --cask'
alias bsd='/usr/local/bin/brew search --desc'
alias bs='/usr/local/bin/brew search'
alias bsa='/usr/local/bin/brew search'
alias bi='/usr/local/bin/brew install'
alias iibs='/usr/local/bin/brew install'
alias bci='/usr/local/bin/brew install --cask'
alias iibcs='/usr/local/bin/brew install --cask'
alias bsl='/usr/local/bin/brew services list'
alias bsstop='/usr/local/bin/brew services stop'
alias bsstart='/usr/local/bin/brew services start'
alias tldr='/usr/local/bin/tldr -p osx'
alias silent='> /dev/null 2>&1'
alias wpcli='php bin/main cli:run'
alias airvpn='/Applications/Eddie.app/Contents/MacOS/Eddie -cli'
alias groupadd='/usr/sbin/dseditgroup -o edit -n . -u $USER -a'
alias grp='/usr/local/bin/sift --conf ~/.sift/all.conf'
alias hypertag='python3 -m hypertag'
alias http='/usr/bin/sudo /usr/local/bin/torsocks /usr/local/bin/http --verify no'
fi
alias get_ip='curl http://ident.me/'
alias sift='sift --binary-skip --err-skip-line-length --exclude-dirs="/node_modules/"--files-with-matches --git --group --no-ignore-case --multiline --recursive --line-number --no-column --no-byte-offset --no-zip'
alias autopep9='find . -name "*.py" -exec autopep8 --in-place -v --aggressive --aggressive \{\} \;'
alias wget='wget --no-netrc'
alias tree='tree -nfi -I node_modules --matchdirs'
alias tarz='tar -xjvf'
if [[ $platform == 'linux' ]]; then
# Homebrew Aliases
elif [[ $platform == 'osx' ]]; then
#alias chrome="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
alias headless_chrome="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --crash-dumps-dir=./tmp --remote-debugging-port=9222\
--flag-switches-begin \
--enable-devtools-experiments \
--enable-experimental-web-platform-features \
--enable-gpu-rasterization \
--javascript-harmony \
--enable-nacl \
--log-net-log \
--enable-oop-rasterization \
--enable-experimental-extension-apis \
--ignore-gpu-blacklist \
--silent-debugger-extension-api \
--enable-features=AccountConsistency,AppManagement,AutofillShowTypePredictions,AwaitOptimization,BlinkGenPropertyTrees,BloatedRendererDetection,BuiltInModuleAll,ExpensiveBackgroundTimerThrottling,ExperimentalProductivityFeatures,ExtensionsToolbarMenu,HistoryManipulationIntervention,LayoutNG,LazyFrameLoading,LazyImageLoading,MacV2GPUSandbox,NativeFileSystemAPI,NativeNotifications,NetworkService,NewTabLoadingAnimation,ParallelDownloading,Portals,Previews,ReducedReferrerGranularity,SSLCommittedInterstitials,SaveEditedPDFForm,SharedArrayBuffer,SiteSettings,UseDownloadOfflineContentProvider,V8Orinoco,V8VmFuture,WasmCodeCache,WebAssemblyBaseline,WebAssemblyCodeGC,WebAssemblyThreads,WebRtcHideLocalIpsWithMdns \
--flag-switches-end"
alias chromedriver="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless"
alias detectx='/Applications/DetectX\ Swift.app/Contents/MacOS/DetectX\ Swift'
alias sudo='/usr/bin/sudo'
alias lektor='/Applications/Lektor.app/Contents/Resources/lektor'
alias winetricks='winetricks --country=CC'
alias java11='$(/usr/libexec/java_home -v 11)/bin/java'
alias java8='$(/usr/libexec/java_home -v 1.8)/bin/java'
alias razorsql='/Applications/RazorSQL.app/Contents/Plugins/java-runtime/Contents/Home/jre/bin/java -Xmx2g -jar /Applications/RazorSQL.app/Contents/Java/razorsql.jar'
alias kdiff='ksdiff'
alias npmi='npm install && npm install --production=false && npm install --only=prod'
#alias aws='aws --endpoint-url=https://localhost:4566 --no-verify-ssl'
alias locate='fd'
alias chamber="$GOPATH/bin/chamber"
#alias pecl='sudo /usr/local/php5/bin/pecl'
alias php5='/usr/local/opt/php@5.6/bin/php'
alias php7='/usr/local/opt/php@7.4/bin/php'
alias pip='/usr/local/opt/python@3.9/bin/pip3.9'
alias pip37='/usr/local/opt/python@3.7/bin/pip3.7'
alias pip38='/usr/local/opt/python@3.8/bin/pip3.8'
alias pip39='/usr/local/opt/python@3.9/bin/pip3.9'
alias pip310='/usr/local/opt/python@3.10/bin/pip3.10'
alias python37='/usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/bin/python3.7'
alias python38='/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8'
alias python39='/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9'
alias python310='/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/bin/python3.10'
alias localstack='/Users/ceo/Library/Python/3.8/bin/localstack'
alias navicat='/Applications/Navicat\ Premium.app/Contents/MacOS/Navicat\ Premium'
alias appid="echo osascript -e \'id of app \"DEVONthink 3\"\'"
alias port="/usr/bin/sudo /opt/local/bin/port"
alias portmirror="/usr/bin/sudo /opt/local/bin/portmirror"
alias portindex="/usr/bin/sudo /opt/local/bin/portindex"
alias daemondo="/usr/bin/sudo /opt/local/bin/daemondo"
alias wpa_supplicant="/Library/Application Support/WLAN/StatusBarApp.app/Contents/MacOS/wpa_supplicant"
fi
alias glances='sudo glances -C $HOME/.glances --fs-free-space --fahrenheit --process-short-name --time 5 --enable-process-extended --disable-history --meangpu --disable-top --disable-quicklook --disable-left-sidebar --percpu --disable-wifi --disable-raid --disable-now --disable-network --disable-fs --disable-folders --disable-diskio --disable-alert'
alias simh='colorls /usr/local/Cellar/simh/3.9-0/bin'
alias opencascade='colorls /usr/local/Cellar/opencascade/7.2.0/bin'
# PS
alias psa="ps aux"
alias psg="ps aux | grep "
# Show human friendly numbers and colors
alias df='df -h'
alias du='sudo du -h -d 1'
if [[ $platform == 'linux' ]]; then
alias ll='ls -alh --color=auto'
alias ls='ls --color=auto'
elif [[ $platform == 'osx' ]]; then
#alias lla='ls -aFlGHh'
alias ll='ls -aFlsGHh'
alias ls='ls -FHh'
alias lm='mc ls'
#alias lla='colorls -lA'
#alias ls='colorls -lA'
alias lss='exa -FHh'
alias lll='echo "$ exa -lFaBhg@Ht created --colour-scale -I node_modules --git --time-style long-iso -s size" && exa -lFaBhg@Ht created --colour-scale -I node_modules --git --time-style long-iso -s size'
fi
# show me files matching "ls grep"
alias lsg='/bin/ls | grep'
# Alias Editing
TRAPHUP() {
source $HOME/.aliases.zsh
}
alias newscript="/usr/local/bin/wget http://bash3boilerplate.sh/main.sh && vim main.sh"
alias ae='/usr/local/bin/vim $HOME/.aliases.zsh' #alias edit
alias ar='source $HOME/.aliases.zsh' #alias reload
alias gar="killall -HUP -u \"$USER\" zsh" #global alias reload
# vim using
mvim --version > /dev/null 2>&1
MACVIM_INSTALLED=$?
if [ $MACVIM_INSTALLED -eq 0 ]; then
alias vim="/usr/local/bin/mvim -v"
fi
# vimrc editing
alias ve='/usr/local/bin/vim ~/.vimrc'
# zsh profile editing
alias ze='/usr/local/bin/vim ~/.zshrc'
alias zp='/usr/local/bin/vim ~/.zprofile'
#alias hist='cat ~/.zhistory | grep'
# Git Aliases
alias gs='git status'
#alias gstsh='git stash'
#alias gst='git stash'
#alias gsp='git stash pop'
#alias gsa='git stash apply'
#alias gsh='git show'
#alias gshw='git show'
#alias gshow='git show'
#alias gcm='git ci -m'
#alias gcim='git ci -m'
#alias gci='git ci'
#alias gco='git co'
#alias gcp='git cp'
alias ga='git add -A'
alias gap='git add -p'
#alias guns='git unstage'
#alias gunc='git uncommit'
#alias gm='git merge'
#alias gms='git merge --squash'
#alias gam='git amend --reset-author'
alias grv='git remote -v'
alias grr='git remote rm'
alias grad='git remote add'
alias gr='git rebase'
#alias gra='git rebase --abort'
alias ggrc='git rebase --continue'
alias gbi='git rebase --interactive'
#alias gl='git l'
#alias glg='git l'
#alias glog='git l'
#alias co='git co'
alias gf='git fetch'
#alias gfp='git fetch --prune'
alias gfa='git fetch --all'
#alias gfap='git fetch --all --prune'
#alias gfch='git fetch'
alias gd='git diff'
#alias gb='git b'
# Staged and cached are the same thing
#alias gdc='git diff --cached -w'
#alias gds='git diff --staged -w'
#alias gpub='grb publish'
#alias gtr='grb track'
alias gpl='git pull'
alias gplr='git pull --rebase'
alias gps='git push'
alias gpsh='git push -u origin `git rev-parse --abbrev-ref HEAD`'
#alias gnb='git nb' # new branch aka checkout -b
alias grs='git reset'
alias grsh='git reset --hard'
alias gcln='git clean'
alias gclndf='git clean -df'
alias gclndfx='git clean -dfx'
alias gsm='git submodule'
alias gsmi='git submodule init'
alias gsmu='git submodule update'
#alias gt='git t'
#alias gbg='git bisect good'
#alias gbb='git bisect bad'
#alias gdmb='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
# Common shell functions
alias less='less -r'
alias tf='tail -f'
#alias l='less'
alias lh='ls -alt | head' # see the last modified files
alias screen='TERM=screen screen'
alias cl='clear'
# Zippin
alias tarx='tar -xzvf'
#If you want your thin to listen on a port for local VM development
alias ts='thin start -a ${VM_IP:-127.0.0.1}'
alias tfdl='tail -f log/development.log'
alias tftl='tail -f log/test.log'
alias ka9='killall -9'
alias k9='kill -9'
# Gem install
alias sgi='sudo gem install --no-ri --no-rdoc'
# TODOS
# This uses NValt (NotationalVelocity alt fork) - http://brettterpstra.com/project/nvalt/
# to find the note called 'todo'
alias todo='open nvalt://find/todo'
# Sprintly - https://github.com/nextbigsoundinc/Sprintly-GitHub
#alias sp='sprintly'
# spb = sprintly branch - create a branch automatically based on the bug you're working on
#alias spb="git checkout -b \`sp | tail -2 | grep '#' | sed 's/^ //' | sed 's/[^A-Za-z0-9 ]//g' | sed 's/ /-/g' | cut -d"-" -f1,2,3,4,5\`"
# Finder
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
# An easy, colored oneline log format that shows signed/unsigned status
alias printlog="log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%aE>%Creset [%G?]'"
# Homebrew
alias brewu='/usr/local/bin/brew update && brew upgrade && brew cleanup && brew doctor'
#alias msfconsole="pushd $HOME/git/metasploit-framework && ./msfconsole && popd"
alias pyenv2="pyenv local 2.7.15 && pyenv shell 2.7.15 && pyenv global 2.7.15"
alias pyenv3="pyenv local 3.7.0 && pyenv shell 3.7.0 && pyenv global 3.7.0"
alias go1.13="/usr/local/opt/go@1.13/bin/go"
[Unit]
After=network.service
[Service]
ExecStart=/home/XXUSERXX/.pyenv/versions/anaconda3-2022.05/bin/jupyter-lab
User=XXUSERXX
[Install]
WantedBy=default.target
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://git zsh-autosuggestions zsh-syntax-highlightinghub.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="xiong-chiamiov-plus"
#ZSH_THEME_RANDOM_CANDIDATES=( "amuse" "aussiegeek" "avit" "bira" "candy" "crcandy" "darkblood" "dst" "dstufft" "duellj" "fino-time" "fino" "fox" "frisk" "frontcube" "funky" "gnzh" "intheloop" "itchy" "jispwoso" "jonathan" "josh" "jtriley" "juanghurtado" "junkfood" "kphoen" "linuxonly" "mortalscumbag" "murilasso" "peepcode" "pmcgee" "re5et" "rgm" "rixius" "rkj-repos" "simonoff" "smt" "Soliah" "steeef" "strug" "suvash" "takashiyoshida" "tjkirch" "xiong-chiamiov" "xiong-chiamiov-plus" "ys" )
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
fpath+=~/.zfunc
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git zsh-autosuggestions zsh-syntax-highlighting textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git copyzshell zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
export HISTFILE=~/.zsh_history
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
export SAVEHIST=1000000000
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source $HOME/.aliases.zsh
#export PATH="$JAVA_HOME/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
#export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export PATH="$HOME/.nvm/versions/node/v*/bin:$PATH"
export GOROOT="/usr/lib/go"
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
export PATH="$HOME/.pyenv/bin:$PATH"
export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH="$GOROOT/bin:$PATH"
export GOBIN="$GOPATH/bin"
export PATH="/usr/local/bin:$PATH"
#export LD_LIBRARY_PATH=/usr/local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
TZ='America/New_York'; export TZ
eval "$(pyenv virtualenv-init -)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/$(whoami)/.pyenv/versions/anaconda3-2022.05/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/$(whoami)/.pyenv/versions/anaconda3-2022.05/etc/profile.d/conda.sh" ]; then
. "/home/$(whoami)/.pyenv/versions/anaconda3-2022.05/etc/profile.d/conda.sh"
else
export PATH="/home/$(whoami)/.pyenv/versions/anaconda3-2022.05/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
#source /usr/local/rvm/scripts/rvm
#export PATH="/usr/local/rvm/gems/ruby-3.0.0/bin:$PATH"
#export JRUBY_HOME=/usr/local/rvm/rubies/jruby-9.2.9.0
#export PATH=$JRUBY_HOME/bin:$PATH
#export PATH="$HOME/.dotnet:$PATH"
#export PATH="$HOME/.dotnet/tools:$PATH"
#export DOTNET_ROOT=/root/.dotnet
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
#alias kubectl='microk8s kubectl'
#source '/opt/azure-cli/az.completion'
# add Pulumi to the PATH
#export PATH=$PATH:$HOME/.pulumi/bin
alias dc=docker-compose
dcr() { docker-compose run --rm "$@"; }
dce() { docker-compose exec "$@"; }
#ssh -N -f -D 9090 user@hostname
#export ALL_PROXY=socks5://127.0.0.1:9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment