Skip to content

Instantly share code, notes, and snippets.

@hindenbug
Last active February 3, 2019 13:28
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 hindenbug/3ad2bc1dbbde077521c08a194a813e34 to your computer and use it in GitHub Desktop.
Save hindenbug/3ad2bc1dbbde077521c08a194a813e34 to your computer and use it in GitHub Desktop.
zmodload zsh/zprof
export PATH=/usr/local/bin:$PATH
#export PATH="$HOME/.bin:$PATH"
# PYTHON PATHS
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
# GO PATHS
#export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export PYENV_ROOT="$HOME/.pyenv"
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
# ENVVARS
export PYTHONSTARTUP=~/.pythonrc
export KEYTIMEOUT=1
export LC_ALL=en_US.UTF-8
export TERM=xterm-256color
export PGHOST=localhost
export PYTHONDONTWRITEBYTECODE=true
# RUST PATHS
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export PATH="$HOME/.emacs.d/bin:$PATH"
# NVM and NODE PATHS
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
#source '/usr/local/share/chruby/chruby.sh'
#source '/usr/local/share/chruby/auto.sh'
#source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#source /usr/local/share/zsh/site-functions/_aws
#source /usr/local/share/zsh/site-functions/_awless
#source $(brew --prefix autoenv)/activate.sh
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
if [[ -n ${EMACS} ]]; then
zstyle ':prezto:module:terminal' auto-title 'no'
fi
for file in ~/.{aliases,functions}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
fpath+=~/.zfunc
fpath=(~/.zsh/completions $fpath)
fpath=(/usr/local/share/zsh-completions $fpath)
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
autoload -Uz compinit
if [ $(date +'%j') != $(/usr/bin/stat -f '%Sm' -t '%j' ${ZDOTDIR:-$HOME}/.zcompdump) ]; then
compinit
else
compinit -C
fi
# Customize to your needs...
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
# FASD
#eval "$(fasd --init posix-alias zsh-ccomp zsh-ccomp-install)"
# _fasd_preexec() {
# { eval "fasd --proc \$(fasd --sanitize \$2)"; } &|
#}
fasd_cache="$HOME/.fasd-init-zsh"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias zsh-ccomp zsh-ccomp-install >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
#autoload -Uz add-zsh-hook
#add-zsh-hook preexec _fasd_preexec
# pyenv() {
# eval "$(command pyenv init -)"
# pyenv "$@"
#}
# pyenv-virtualenv-init(){
# eval "$(command pyenv virtualenv-init -)"
# pyenv-virtualenv-init "$@"
#}
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
SPACESHIP_PROMPT_ORDER=(
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
package # Package version
ruby # Ruby section
elixir # Elixir section
golang # Go section
rust # Rust section
haskell # Haskell Stack section
julia # Julia section
pyenv # Pyenv section
line_sep # Line break
battery # Battery level and status
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_PROMPT_FIRST_PREFIX_SHOW=true
SPACESHIP_CHAR_SYMBOL="λ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment