Skip to content

Instantly share code, notes, and snippets.

@eri451
Last active October 24, 2016 01:30
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 eri451/177d7ea182900fc30e49f30e06717e7f to your computer and use it in GitHub Desktop.
Save eri451/177d7ea182900fc30e49f30e06717e7f to your computer and use it in GitHub Desktop.
Vimlink - using the clientserver feature
function vimlinked()
{
if [[ -z ${VIMLINKED} ]]
then
echo ""
else
echo "${PR_MAGENTA} ⚓ ${VIMLINKED}"
fi
}
local vilnk='$(vimlinked)'
local inner="${vilnk} ${cwd}${colon}${user_host}"
RPROMPT="${PR_RESET}${bracket_open}${inner}${bracket_close}${PR_RESET}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment