Fix dir_writable segment

This commit is contained in:
Dominik Ritter 2018-10-11 17:07:09 +02:00
parent 465e52c43b
commit fe7125930d

View File

@ -22,6 +22,6 @@ p9k::register_segment 'DIR_WRITABLE' 'FORBIDDEN' "red" "yellow1" $'\uE0A2' $'\u
##
prompt_dir_writable() {
if [[ ! -w "$PWD" ]]; then
p9k::prepare_segment "$0" "FORBIDDEN" $1 "$2" $3 "" "true"
p9k::prepare_segment "$0" "FORBIDDEN" $1 "$2" $3 "" "[[ true ]]"
fi
}