Dotfiles config update (2022-03-06)

This commit is contained in:
q3aql 2022-03-06 00:23:12 +01:00
parent 199d69f98a
commit 4480129d15
3 changed files with 8 additions and 5 deletions

View File

@ -5,9 +5,9 @@ case "$TERM" in
esac
if [ "$color_prompt" = yes ]; then
PS1="\[\033[01;34m\]\u@\h\[\033[00m\] [\[\033[01;33m\]\w\[\033[00m\]] \[\033[01;32m\]○\[\033[00m\] \[\033[01;35m\][\[\033[00m\]\t\[\033[01;35m\]]\[\033[00m\]\n> "
PS1="\n\[\033[01;34m\]\u@\h\[\033[00m\] [\[\033[01;33m\]\w\[\033[00m\]] \[\033[01;32m\]○\[\033[00m\] \[\033[01;35m\][\[\033[00m\]\t\[\033[01;35m\]]\[\033[00m\]\n> "
else
PS1="\u@\h [\w] ○ [\t]\n> "
PS1="\n\u@\h [\w] ○ [\t]\n> "
#PS1="\u@\h [\w] o [\t]\n> "
fi
unset color_prompt force_color_prompt

View File

@ -9,8 +9,9 @@ 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')
echo -e ""
echo -e -n "\e[34m$user_loaded@$hostname_host\e[0m "
echo -e -n "\e[33m[$current_dir]\e[0m "
echo -e -n "[\e[33m$current_dir\e[0m] "
echo -e -n "\e[32m○\e[0m "
echo -e -n "\e[35m[\e[0m$current_time\e[35m]\e[0m"
echo -e ""

View File

@ -6,10 +6,12 @@ case "$TERM" in
esac
if [ "$color_prompt" = yes ]; then
PS1="%F{blue}%n@%m %F{default}[%F{yellow}%/%f] %F{green}○ %F{magenta}[%F{default}%*%F{magenta}]
PS1="
%F{blue}%n@%m %F{default}[%F{yellow}%/%f] %F{green}○ %F{magenta}[%F{default}%*%F{magenta}]
%F{default}> "
else
PS1="%n@%m [%/%f] ○ [%*]
PS1="
%n@%m [%/%f][%*]
> "
#PS1="%n@%m [%/%f] o [%*]
#> "