Handle being in a deleted directory

* Do not whine when executed from a missing directory
 * Display a section with '(no cwd)'
 * Display path with a different color
This commit is contained in:
Emmanuel BENOîT 2020-10-23 21:06:35 +02:00
parent 4b84f067e7
commit ab28d80e5b
7 changed files with 59 additions and 11 deletions

View file

@ -47,6 +47,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'fg3' ,
'cwd_missing_bg_color' => thref 'bg3' ,
# User@host - Remote host symbol
'uh_remote_symbol' => '(r)',

View file

@ -47,6 +47,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'fg3' ,
'cwd_missing_bg_color' => thref 'bg3' ,
# User@host - Remote host symbol
'uh_remote_symbol' => '(r)',

View file

@ -47,6 +47,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'fg3' ,
'cwd_missing_bg_color' => thref 'bg3' ,
# User@host - Remote host symbol
'uh_remote_symbol' => "\x{21a5}",

View file

@ -47,6 +47,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'fg3' ,
'cwd_missing_bg_color' => thref 'bg3' ,
# User@host - Remote host symbol
'uh_remote_symbol' => "\x{21a5}",

View file

@ -46,6 +46,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'bg3' ,
'cwd_missing_bg_color' => SECTION_DEFAULT ,
# User@host - Remote host symbol
'uh_remote_symbol' => "\x{21a5}",

View file

@ -46,6 +46,9 @@
# Current working directory - Foreground / background colors
'cwd_fg_color' => SECTION_DEFAULT ,
'cwd_bg_color' => SECTION_DEFAULT ,
# Current working directory - Colors when directory is missing
'cwd_missing_fg_color' => thref 'bg3' ,
'cwd_missing_bg_color' => SECTION_DEFAULT ,
# User@host - Remote host symbol
'uh_remote_symbol' => "\x{21a5}",