diff options
author | portix <portix@gmx.net> | 2013-05-09 23:26:49 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2013-05-09 23:26:49 +0200 |
commit | 605e966f73f6b4fac1548e76c86001b4e7f360c9 (patch) | |
tree | 1570f0e8dd4dc9a1245025e9f157edb83ddaad27 /contrib/bash-completion | |
parent | 9555b7603b2cf54e96ca3812b28925231b8e96cc (diff) | |
download | dwb-605e966f73f6b4fac1548e76c86001b4e7f360c9.zip |
New commandline option -d/--delete-profile
Diffstat (limited to 'contrib/bash-completion')
-rw-r--r-- | contrib/bash-completion | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/bash-completion b/contrib/bash-completion index 4bde472b..4de384a2 100644 --- a/contrib/bash-completion +++ b/contrib/bash-completion @@ -10,7 +10,7 @@ __profile() { COMPREPLY=( $( compgen -W "$( while read line; do [[ "$line" == \[* ]] && { line="${line#\[}" - printf "${line%\]}" + printf "${line%\]} " } done < "${HOME}/.config/dwb/settings" )" -- $cur ) ) } @@ -83,8 +83,8 @@ _dwb() { local cur prev opts lopts _init_completion || return - opts="-h -c -e -f -l -n -r -R -p -x -v -S" - lopts="--help --check-script --embed --force --list-sessions --new-instance + opts="-h -c -d -e -f -l -n -r -R -p -x -v -S" + lopts="--help --check-script --delete-profile --embed --force --list-sessions --new-instance --restore --override-restore --profile --execute --version --enable-scripts --set-as-default" @@ -98,6 +98,9 @@ _dwb() { -p|--profile) __profile return 0;; + -d|--delete-profile) + __profile + return 0;; -x|--execute) __execute return 0;; |