Skip to content

Instantly share code, notes, and snippets.

@insanrizky
Last active February 13, 2021 18:22
Show Gist options
  • Save insanrizky/6e157fde2d3b4b563b11eb3c20486f0a to your computer and use it in GitHub Desktop.
Save insanrizky/6e157fde2d3b4b563b11eb3c20486f0a to your computer and use it in GitHub Desktop.
My Terminal Personalization
set_tab_title() {
echo -e "\033]${PWD##*/}\007"
}
precmd_functions=($precmd_functions set_tab_title)
autoload -U colors && colors
# autoload -Uz compinit
#if type brew &>/dev/null; then
# FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
#
# autoload -Uz compinit
# compinit
#fi
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
export kw=/Users/insanrizky/Documents/Keller\ Williams/
export pj=/Users/insanrizky/Documents/Projects/
alias yarn-fresh="rm -rf node_modules/ && yarn"
alias yarn-frun="rm -rf node_modules/ && yarn qa"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/'
}
# Set up the prompt (with git branch name)
setopt PROMPT_SUBST
PROMPT='%{$fg[yellow]%}%.%{$fg[cyan]%}$(parse_git_branch)%{$reset_color%} $ '
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
include ./theme.conf
font_size 16
map cmd+shift+right next_tab
map cmd+shift+left previous_tab
map cmd+shift+t new_tab
map cmd+shift+q close_tab
map cmd+shift+l next_layout
map cmd+shift+. move_tab_forward
map cmd+shift+, move_tab_backward
background #363537
foreground #f7f1ff
cursor #f7f1ff
cursor_text_color #000000
selection_foreground #363537
selection_background #f7f1ff
tab_bar_style powerline
active_tab_background #fce566
# dull black
color0 #363537
# light black
color8 #69676c
# dull red
color1 #fc618d
# light red
color9 #fc618d
# dull green
color2 #7bd88f
# light green
color10 #7bd88f
# yellow
color3 #fce566
# light yellow
color11 #fce566
# blue
color4 #fd9353
# light blue
color12 #fd9353
# magenta
color5 #948ae3
# light magenta
color13 #948ae3
# cyan
color6 #5ad4e6
# light cyan
color14 #5ad4e6
# dull white
color7 #f7f1ff
# bright white
color15 #f7f1ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment