2022-03-02 23:08:13 +01:00
|
|
|
#!/usr/bin/fish
|
|
|
|
|
|
|
|
set TERM xterm-256color
|
|
|
|
|
|
|
|
set user_loaded (whoami)
|
|
|
|
set hostname_host (hostname)
|
|
|
|
|
|
|
|
function fish_prompt
|
|
|
|
# interactive user name @ host name, date/time in YYYY-mm-dd format and path
|
|
|
|
set current_dir (pwd)
|
|
|
|
set current_time (date '+%H:%M:%S')
|
2022-03-06 00:23:12 +01:00
|
|
|
echo -e ""
|
2022-03-02 23:08:13 +01:00
|
|
|
echo -e -n "\e[34m$user_loaded@$hostname_host\e[0m "
|
2022-03-06 00:23:12 +01:00
|
|
|
echo -e -n "[\e[33m$current_dir\e[0m] "
|
2022-03-02 23:08:13 +01:00
|
|
|
echo -e -n "\e[32m○\e[0m "
|
|
|
|
echo -e -n "\e[35m[\e[0m$current_time\e[35m]\e[0m"
|
|
|
|
echo -e ""
|
|
|
|
echo -e "> "
|
|
|
|
end
|