2019-02-16 08:04:35 +01:00
|
|
|
function wish_path_start() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
function wish_path_end() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
function wish_path_set_colors() {
|
|
|
|
WISH_PATH_FG=${WISH_PATH_FG:-$WISH_DEFAULT_FG}
|
|
|
|
WISH_PATH_BG=${WISH_PATH_BG:-$WISH_DEFAULT_BG}
|
2019-02-17 12:11:02 +01:00
|
|
|
WISH_PATH_NO_WRITE_SUFFIX=${WISH_PATH_NO_WRITE_SUFFIX:- }
|
2019-02-16 08:04:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function wish_path_main() {
|
2019-02-17 12:11:02 +01:00
|
|
|
if [[ -w $PWD ]]; then
|
2019-12-15 17:31:29 +01:00
|
|
|
local path=" ${PWD/$HOME/\~} "
|
2019-02-17 12:11:02 +01:00
|
|
|
else
|
2019-12-15 17:31:29 +01:00
|
|
|
local path=" ${PWD/$HOME/\~}$WISH_PATH_NO_WRITE_SUFFIX "
|
2019-02-17 12:11:02 +01:00
|
|
|
fi
|
|
|
|
wish_append $WISH_PATH_BG $WISH_PATH_FG "$path"
|
2019-02-16 08:04:35 +01:00
|
|
|
}
|