Skip to content

Instantly share code, notes, and snippets.

@elhenro elhenro/.zshrc
Last active Jun 21, 2019

Embed
What would you like to do?
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/home/hnr/.oh-my-zsh"
SPACESHIP_GIT_SHOW=false
SPACESHIP_HG_SHOW=false
SPACESHIP_HG_BRANCH_SHOW=false
SPACESHIP_HG_STATUS_SHOW=false
SPACESHIP_PACKAGE_SHOW=false
SPACESHIP_NODE_SHOW=false
SPACESHIP_RUBY_SHOW=false
SPACESHIP_ELM_SHOW=false
SPACESHIP_ELIXIR_SHOW=false
SPACESHIP_XCODE_SHOW_LOCAL=false
SPACESHIP_SWIFT_SHOW_LOCAL=false
SPACESHIP_GOLANG_SHOW=false
SPACESHIP_AWS_SHOW=false
SPACESHIP_VENV_SHOW=false
SPACESHIP_CONDA_SHOW=false
SPACESHIP_PYENV_SHOW=false
SPACESHIP_JOBS_SHOW=false
SPACESHIP_BATTERY_SHOW=true
SPACESHIP_EXEC_TIME_SHOW=false
SPACESHIP_TERRAFORM_SHOW=false
SPACESHIP_KUBECONTEXT_SHOW=false
SPACESHIP_EMBER_SHOW=false
SPACESHIP_DOTNET_SHOW=false
SPACESHIP_CHAR_PREFIX=" πŸ₯ "
SPACESHIP_CHAR_SYMBOL=""
SPACESHIP_CHAR_SYMBOL_SECONDARY=""
SPACESHIP_CHAR_SUFFIX=""
SPACESHIP_CHAR_COLOR_SUCCESS="pink"
SPACESHIP_CHAR_COLOR_FAILURE="blue"
SPACESHIP_CHAR_SYMBOL_ROOT=""
SPACESHIP_DIR_SHOW=false
plugins=(
git
zsh-autosuggestions
# vi-mode
)
ZSH_THEME="spaceship"
source $ZSH/oh-my-zsh.sh
export MANPATH="/usr/local/man:$MANPATH"
export LANG=en_US.UTF-8
# LANG="en_US.utf8"
# export LANG
export PATH="$PATH:$HOME/go/bin"
export PATH="$PATH:$HOME/.gem/ruby/2.6.0/bin"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export VISUAL=vim
export EDITOR="$VISUAL"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
export FZF_DEFAULT_COMMAND='vim $(fzf)'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="cd ~/; bfs -type d -nohidden | sed s/^\./~/"
# finally load bash aliases
source ~/.bash_aliases
export HISTFILE=~/.zsh_history
export HISTSIZE=999999999
export SAVEHIST=$HISTSIZE
EMOJIS=(πŸš€ 😊 🌢 ❇ 🀯 πŸ¦’ πŸ₯‘ 🍍 🧧 🌲 🌏 🌜 πŸ₯ 🐀 πŸ”Ά 🏡 🎴 πŸ‘» 🐘 πŸ”­)
# SELECTED_EMOJI=${EMOJIS[$RANDOM % ${#EMOJIS[@]}]};
RANDOM_EMOJI() {
SELECTED_EMOJI=${EMOJIS[$RANDOM % ${#EMOJIS[@]}]};
echo $SELECTED_EMOJI;
}
export PS1=' $(RANDOM_EMOJI) '
command_not_found_handler() {
echo ' πŸ˜• ?'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.