(bugfix) make compatible with fish version >=3.3
- cleanup - minor comments and fixes
This commit is contained in:
@ -86,32 +86,12 @@ function git::untracked
|
||||
end
|
||||
end
|
||||
|
||||
function fish_right_prompt
|
||||
|
||||
# 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 2>/dev/null)
|
||||
# set parent_root_folder (dirname $root_folder)
|
||||
# set cwd (echo $PWD | sed -e "s|$parent_root_folder/||")
|
||||
# end
|
||||
# end
|
||||
|
||||
# Because of having a two line promt now we dont need right anymore so we dont print anything here atm
|
||||
#printf (yellow)"("(off)$cwd(yellow)") "(off)
|
||||
#printf (off)(date +%H(yellow):(off)%M(yellow):(off)%S)(off)"\n"
|
||||
end
|
||||
|
||||
|
||||
function fish_prompt
|
||||
set -l symbol "λ "
|
||||
set -l code $status
|
||||
set t31m_custom_right (t31m_prompt_right)
|
||||
set t31m_custom_left (t31m_prompt_left)
|
||||
|
||||
echo -ns "$t31m_custom_right"
|
||||
echo -ns "$t31m_custom_left"
|
||||
|
||||
if test -n "$ssh_client"
|
||||
set -l host (hostname -s)
|
||||
|
||||
Reference in New Issue
Block a user