Updated Fish Prompt style / fish right prompt & newline
This commit is contained in:
18
fish/theme-t31m/t31m_prompt_right.fish
Normal file
18
fish/theme-t31m/t31m_prompt_right.fish
Normal file
@ -0,0 +1,18 @@
|
||||
function t31m_prompt_right
|
||||
|
||||
if test "$theme_complete_path" = "yes"
|
||||
set cwd (prompt_pwd)
|
||||
else
|
||||
set cwd (basename (prompt_pwd))
|
||||
|
||||
if git::is_repo
|
||||
set root_folder (command git rev-parse --show-toplevel ^/dev/null)
|
||||
set parent_root_folder (dirname $root_folder)
|
||||
set cwd (echo $PWD | sed -e "s|$parent_root_folder/||")
|
||||
end
|
||||
end
|
||||
|
||||
printf (yellow)"("(off)$cwd(yellow)") "(off)
|
||||
printf (off)(date +%H(yellow):(off)%M(yellow):(off)%S)(off)"\n"
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user