Skip to content

Instantly share code, notes, and snippets.

@fffergal
Last active July 23, 2026 18:36
Show Gist options
  • Select an option

  • Save fffergal/71f0265804162851de92e1f840ef3777 to your computer and use it in GitHub Desktop.

Select an option

Save fffergal/71f0265804162851de92e1f840ef3777 to your computer and use it in GitHub Desktop.
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=100000
export SAVEHIST=100000
setopt INC_APPEND_HISTORY
bindkey -v
bindkey '^[[Z' reverse-menu-complete
autoload edit-command-line
zle -N edit-command-line
bindkey -M vicmd "^V" edit-command-line
# Add back some bash / emacs / readline style shortcuts in vi mode.
bindkey -M viins '^A' beginning-of-line
bindkey -M viins '^E' end-of-line
bindkey -M viins '\e.' insert-last-word
# Customize jq colors. Colon separated list of partial ansi escapes (same format
# as dir_colors) in this order:
# color for null
# color for false
# color for true
# color for numbers
# color for strings
# color for arrays
# color for objects
# color for object keys
#
# The default is:
# JQ_COLORS="0;90:0;37:0;37:0;37:0;32:1;37:1;37:1;34"
# And that makes null the same as solarized dark background color, and uses bold
# for some things, which I don't have a font for. The docs say bright instead of
# bold, but I think it's bold because you can use the 9x and 10x colors for
# bright.
JQ_COLORS="0;92:0;32:0;37:40;36:00:0;34:0;35:0;33"
# Scroll in less instead of the tmux pane by default. Requires a newish less
# that may need installing.
export LESS="--mouse --wheel-lines=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment