Last active
April 21, 2019 21:35
-
-
Save 108krohan/9e5259112eafdaa245b7bf350dfebcc0 to your computer and use it in GitHub Desktop.
Sample ZSHRC file for https://medium.com/rabbitsync/terminal-zsh-and-forget-621df2f528cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$HOME/bin:$HOME/.toolbox/bin:$PATH | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
POWERLEVEL9K_MODE="nerdfont-complete" | |
POWERLEVEL9K_DISABLE_RPROMPT=false | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon user dir_writable dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time) | |
#POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{014}\u2570%F{cyan}\uF460%F{073}\uF460%F{109}\uF460%f " | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="" | |
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}" | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_to_unique" | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | |
POWERLEVEL9K_USER_ICON="\uF415" # | |
POWERLEVEL9K_ROOT_ICON="\uF09C" | |
POWERLEVEL9K_SUDO_ICON=$'\uF09C' # | |
POWERLEVEL9K_VCS_GIT_ICON='\uF408 ' | |
POWERLEVEL9K_VCS_GIT_GITHUB_ICON='\uF408 ' | |
ZSH_DISABLE_COMPFIX=true | |
ENABLE_CORRECTION="true" | |
COMPLETION_WAITING_DOTS="true" | |
# DISABLE_LS_COLORS="true" | |
# DISABLE_AUTO_TITLE="true" | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
plugins=( | |
git | |
iterm2 | |
macports | |
man | |
osx | |
python | |
composer | |
zsh-syntax-highlighting | |
zsh-autosuggestions | |
) | |
source $ZSH/oh-my-zsh.sh | |
# ssh | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
# alias | |
alias suroot='sudo -E -s' | |
alias ez="vi ~/.zshrc" | |
alias rz="source ~/.zshrc" | |
alias vv="vi ~/.vimrc" | |
alias e=emacs | |
# require fortune, cowsay and lolcat | |
# random cows speak fortune | |
# FORTUNE="fortune" | |
# for COWNAME in `cowsay -l | tail -n+3` | |
# do | |
# COWS+=$COWNAME | |
# COWS+='\n' | |
# done | |
# COWS=${COWS%??} | |
# RANDOMCOW=$(echo -e $COWS | gsort -R | head -1) | |
# $FORTUNE -s | cowsay -f $RANDOMCOW | lolcat | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment