forked from extern/nix-config
cb4278514d
Really, there is no reason to use zsh when fish exists, at least not for my use case. Maintaining one set of shell config files is easier than two, so I'm removing the zsh files. Some other changes in this commit include: - The addition of the current user and hostname to the fish prompt - The addition of some zsh functions I re-implemented in fish - The removal of the dircolors file (not needed with exa anyway) - The removal of some aliases I never used -
21 lines
567 B
Fish
21 lines
567 B
Fish
# 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)"
|
|
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
|