diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 17:15:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 17:15:42 +1200 |
commit | 48db433b1dfb676a7822bc2db333cc3eb7ddb013 (patch) | |
tree | 0eca24326051f3fdd14c0674b1169a3cfbceb474 | |
parent | Wrapper for pushd defaults to $HOME if no args (diff) | |
download | dotfiles-48db433b1dfb676a7822bc2db333cc3eb7ddb013.tar.gz dotfiles-48db433b1dfb676a7822bc2db333cc3eb7ddb013.zip |
Remove unneeded quoting in case statement
Wordsplitting is not done for case <WORD>:
<http://wiki.bash-hackers.org/syntax/ccmd/case>
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 | ||||
-rwxr-xr-x | install | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 74eae891..b843beb3 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -6,7 +6,7 @@ prompt() { local color reset branch state info url root # What's done next depends on the first argument to the function - case "$1" in + case $1 in # Turn complex, colored prompt on on) @@ -33,7 +33,7 @@ ln -insv -- "$dotfiles/vim" "$HOME/.vim" # Link in shell stuff while getopts :gmntx opt; do - case "$opt" in + case $opt in g) mkdir -pv -- "$HOME/.gnupg" ln -insv -- "$dotfiles/gnupg/gpg.conf" "$HOME/.gnupg" |