Last active
April 3, 2019 10:49
-
-
Save koesherbacon/c9ca1df64efe0f12d0a2c6e609392f03 to your computer and use it in GitHub Desktop.
My most recent and current Fish prompt for Root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is ROOT's Fish Prompt following the style of my normal user's Fish Prompt | |
# My normal Fish Prompt is available here: https://gist.github.com/koesherbacon/bed3d8eac49da2d588f0ce4881c60c40 | |
# Created 03-30-19 | |
# | |
# Note: There's a bunch of commented-out code here. It's there bc it took me a while to make this perfectly and I'm too lazy to bother to remove it! | |
# | |
# Here's a preview: | |
# <TBD> | |
# | |
# And here's the code | |
# this belongs in /root/.config/fish/functions/fish_prompt.fish | |
function fish_prompt | |
echo '' | |
if not set -q VIRTUAL_ENV_DISABLE_PROMPT | |
set -g VIRTUAL_ENV_DISABLE_PROMPT true | |
end | |
# set_color D700FF | |
# printf '%s' (whoami) | |
# set_color normal | |
# printf ' at ' | |
# set_color cyan | |
# echo -n (prompt_hostname) | |
# set_color normal | |
# printf ' in ' | |
set_color normal | |
printf ' ╭──▢' | |
set_color ff0000 | |
printf ' USING ROOT ACCOUNT! ' | |
set_color normal | |
# echo '◗' | |
echo '' | |
echo -n ' ├──○ ' | |
set_color FFD700 | |
echo -n '{' | |
set_color FF8700 | |
printf ' %s' (prompt_pwd) | |
set_color FFD700 | |
echo -n ' }' | |
# set_color ff0000 ' AS ROOT!' | |
set_color normal | |
# Line 2 | |
# echo ' ┊ ' | |
# Line 3 | |
echo | |
if test $VIRTUAL_ENV | |
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal) | |
end | |
# set color normal | |
# echo ' ├─' | |
printf ' ╰──▷ ' | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment