Post your PS1:
export PS1="%d -> "
export RPROMPT="[%*]"
>>58371499
>>58371747
Nice picture anon, can i keep it
\[\033[38;5;12m\][\[\]\[\033[38;5;10m\]\u\[\]\[\033[38;5;12m\]@\[\]\[\033[38;5;7m\]\h\[\]\[\033[38;5;12m\]]\[\]\[\033[38;5;15m\]: \[\]\[\033[38;5;7m\]\w\[\]\[\033[38;5;12m\]>\[\]\[\033[38;5;10m\]\$\[\]\[\033[38;5;15m\] \[\]
PS1='\[\033[01m\][ \[\033[1;34m\]\u@\h \[\033[00m\]\[\033[01m\]] \[\033[00;33m\]\w\[\033[00m\]\n\[\033[01;31m\]$\[\033[00m\] \[\033[01;32m\]→ \[\033[00m\]'
>>58371747
He's SO PROUD.
export MYPS='$(echo -n "${PWD/#$HOME/\/~}" | awk -F "/" '"'"'{
if (length($0) > 14) { if (NF>4) print $1 "/" $2 "/.../" $(NF-1) "/" $NF;
else if (NF>2) print $1 "/" $2 "/.../" $NF;
else print $1 "/" $NF; }
else print $0;}'"'"')'
PS1='\[\033[1;34m\]$(eval "echo ${MYPS}")\[\033[00;37m\]$ '
The MYPS allows me to see the working directory in a way that doesn't take up too much space.
Say I am in~/documents/projects/project_a/code/src/module.
This will then be viewed as~/.../module.
Since I like to have a deep folder structure, this allows me to still have everything on a single line.
If someone knows a more effective way to achieve this, please let me know.
>>58373461
post webm
>>58373483
mods are rude desu
>>58371499~> type fish_prompt
fish_prompt is a function with definition
function fish_prompt
set_color 556275
echo -n (prompt_pwd)
set_color normal
echo -n '> '
end