Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created November 28, 2013 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjriddle/7698696 to your computer and use it in GitHub Desktop.
Save brianjriddle/7698696 to your computer and use it in GitHub Desktop.
precmd that adds a separator
function brris_precmd_hook {
local bar=""
local separator="✨"
for ((i = 0; i < ${COLUMNS}; i++)) ; do
bar="${bar}${separator}"
done
echo $fg_bold[yellow]${bar}
}
[[ -z $precmd_functions ]] && precmd_functions=()
precmd_functions=($precmd_functions brris_precmd_hook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment