1
0
forked from extern/nix-config
donovanglover-nix-config/dots/common/.config/fish/functions/fish_prompt.fish

22 lines
607 B
Fish
Raw Normal View History

# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
function fish_prompt
set pwd (basename $PWD)
set hostname (hostname)
if [ $pwd = $USER ]
set pwd "~"
end
set_color yellow; echo -n "$USER@$hostname"
set_color normal; echo -n " "
set_color magenta; echo -n "($pwd)"
2018-09-10 21:09:00 +02:00
#set_color magenta; echo -n "$pwd"
set_color normal; echo -n " "
set_color red; echo -n "➤"
set_color green; echo -n "➤"
set_color blue; echo -n "➤"
set_color normal; echo -n " "
end