Rename dir_permissions segment to dir_writable

Additionally:
- Add changelog entry
- Add documentation
This commit is contained in:
Dominik Ritter 2017-01-31 23:57:59 +01:00
commit 052eba9c74
3 changed files with 7 additions and 2 deletions

View file

@ -1114,8 +1114,8 @@ prompt_swift_version() {
"$1_prompt_segment" "$0" "$2" "magenta" "white" "${swift_version}" 'SWIFT_ICON'
}
# dir_permision: Display information about the user's permission to write in the current directory
prompt_dir_permission() {
# dir_writable: Display information about the user's permission to write in the current directory
prompt_dir_writable() {
if [[ ! -w "$PWD" ]]; then
"$1_prompt_segment" "$0_FORBIDDEN" "$2" "red" "226" "" 'LOCK_ICON'
fi