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