Skip to content

Instantly share code, notes, and snippets.

@kenjikato
Last active February 20, 2026 10:11
Show Gist options
  • Select an option

  • Save kenjikato/ecf864660f9706441b1434fa112db525 to your computer and use it in GitHub Desktop.

Select an option

Save kenjikato/ecf864660f9706441b1434fa112db525 to your computer and use it in GitHub Desktop.

Revisions

  1. kenjikato revised this gist Feb 20, 2026. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,11 @@ autoload -U +X bashcompinit && bashcompinit # Bash completion compatibility

    alias branch="echo \$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')"

    # ============
    # PATH SETUPS
    # ============

    export PATH="$HOME/.local/bin:$PATH"

    # ===============
    # WELCOME MESSAGE
  2. kenjikato revised this gist Jul 2, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # An enhanced .zshrc for macOS
    #
    # =====================================
    # MAKE THE TERMINAL LOOK MORE COLORFUL
    # =====================================
  3. Kenji Kato revised this gist Sep 12, 2020. 1 changed file with 25 additions and 6 deletions.
    31 changes: 25 additions & 6 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ autoload -Uz colors && colors #Want to know about autoload go here: https://stac

    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
    xterm-color | *-256color) color_prompt=yes ;;
    esac

    if [[ "$color_prompt" = yes ]]; then
    @@ -21,8 +21,9 @@ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quo
    export LS_OPTIONS='--color=auto'

    export CLICOLOR=1
    export LSCOLORS="exgxfxdacxDaDaxbadacex"
    export LS_COLORS="di=34;40:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:"
    export LSCOLORS='EhgxfxdacxDaDaxbadacex'
    export LS_COLORS='di=35;103:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:'
    alias ls='ls -lGH'
    alias grep='grep --colour=auto'
    alias fgrep='fgrep --colour=auto'
    alias egrep='egrep --colour=auto'
    @@ -32,8 +33,9 @@ alias egrep='egrep --colour=auto'
    # =================
    # Use modern completion system
    autoload -Uz compinit && compinit -i # ignore permission differences in macOS
    zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
    zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
    # Best example of using this is found here https://superuser.com/questions/290500/zsh-completion-colors-and-os-x
    zstyle ':completion:*:default' list-colors 'di=35;103:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:'
    # zstyle ':completion:*' list-colors 'di=35;103:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:'
    zstyle ':completion:*' auto-description 'specify: %d'
    zstyle ':completion:*' completer _expand _complete _correct _approximate
    zstyle ':completion:*' format 'Completing %d'
    @@ -48,4 +50,21 @@ zstyle ':completion:*' verbose true
    zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
    zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,comm'

    autoload -U +X bashcompinit && bashcompinit # Bash completion compatibility
    autoload -U +X bashcompinit && bashcompinit # Bash completion compatibility

    # ============
    # ALIAS SETUP
    # ============

    alias branch="echo \$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')"


    # ===============
    # WELCOME MESSAGE

    echo "Welcome coder 👨🏻‍💻"

    # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # Below this point are configs that are not part of my standard .zshrc file that is on github under this gist:
    # https://gist.github.com/kenjikato/ecf864660f9706441b1434fa112db525
    # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4. kenjikato revised this gist Feb 16, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # ===========================
    # LOCALE, TERMINAL AND COLORS
    # ===========================
    # =====================================
    # MAKE THE TERMINAL LOOK MORE COLORFUL
    # =====================================

    # Load the colors functionality into zsh. Go here to learn more about colors: https://unix.stackexchange.com/questions/19498/understanding-colors-in-zsh
    autoload -Uz colors && colors #Want to know about autoload go here: https://stackoverflow.com/questions/30840651/what-does-autoload-do-in-zsh
  5. kenjikato created this gist Feb 16, 2020.
    51 changes: 51 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    # ===========================
    # LOCALE, TERMINAL AND COLORS
    # ===========================

    # Load the colors functionality into zsh. Go here to learn more about colors: https://unix.stackexchange.com/questions/19498/understanding-colors-in-zsh
    autoload -Uz colors && colors #Want to know about autoload go here: https://stackoverflow.com/questions/30840651/what-does-autoload-do-in-zsh

    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
    esac

    if [[ "$color_prompt" = yes ]]; then
    PS1="%{$fg_bold[cyan]%}%n@%m%{%f%}:%{$fg_bold[magenta]%}%~%{$reset_color%}%# "
    else
    PS1="%n@%m:%~%# "
    fi
    unset color_prompt

    export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
    export LS_OPTIONS='--color=auto'

    export CLICOLOR=1
    export LSCOLORS="exgxfxdacxDaDaxbadacex"
    export LS_COLORS="di=34;40:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:"
    alias grep='grep --colour=auto'
    alias fgrep='fgrep --colour=auto'
    alias egrep='egrep --colour=auto'

    # =================
    # SHELL COMPLETION
    # =================
    # Use modern completion system
    autoload -Uz compinit && compinit -i # ignore permission differences in macOS
    zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
    zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
    zstyle ':completion:*' auto-description 'specify: %d'
    zstyle ':completion:*' completer _expand _complete _correct _approximate
    zstyle ':completion:*' format 'Completing %d'
    zstyle ':completion:*' group-name ''
    zstyle ':completion:*' menu select=2
    zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
    zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
    zstyle ':completion:*' menu select=long
    zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
    zstyle ':completion:*' use-compctl false
    zstyle ':completion:*' verbose true
    zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
    zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,comm'

    autoload -U +X bashcompinit && bashcompinit # Bash completion compatibility