diff options
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,7 +3,6 @@ # aliases alias ls='ls --color=auto' -PS1='[\u@\h \W]\$ ' alias mpv="mpv --ytdl-format mp4" alias mv="mv -iv" alias cp="cp -iv" @@ -22,3 +21,8 @@ aur() { # echo -e "\033[5 q" # blinking echo -e "\033[6 q" # non-blinking +a_prompt() { + cwd=$(pwd | sed -e "s!$HOME!~!" | sed -re "s!([^/])[^/]+/!\1/!g") + printf $cwd +} +PS1="\u@\h \$(a_prompt)> " |