mirror of
https://github.com/Powerlevel9k/powerlevel9k.git
synced 2024-09-21 10:27:12 +00:00
Fix dir_writable segment
This commit is contained in:
parent
465e52c43b
commit
fe7125930d
@ -22,6 +22,6 @@ p9k::register_segment 'DIR_WRITABLE' 'FORBIDDEN' "red" "yellow1" $'\uE0A2' $'\u
|
|||||||
##
|
##
|
||||||
prompt_dir_writable() {
|
prompt_dir_writable() {
|
||||||
if [[ ! -w "$PWD" ]]; then
|
if [[ ! -w "$PWD" ]]; then
|
||||||
p9k::prepare_segment "$0" "FORBIDDEN" $1 "$2" $3 "" "true"
|
p9k::prepare_segment "$0" "FORBIDDEN" $1 "$2" $3 "" "[[ true ]]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user