mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
use OPTARG to get key
This commit is contained in:
committed by
GitHub
parent
ae75326a40
commit
b22f7005f8
@ -22,8 +22,8 @@ fi
|
|||||||
|
|
||||||
# org-capture key mapped to argument flags
|
# org-capture key mapped to argument flags
|
||||||
# keys=$(emacsclient -e "(+org-capture-available-keys)" | cut -d '"' -f2)
|
# keys=$(emacsclient -e "(+org-capture-available-keys)" | cut -d '"' -f2)
|
||||||
while getopts hk opt; do
|
while getopts "hk:" opt; do
|
||||||
key="\"$opt\""
|
key="\"$OPTARG\""
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
Reference in New Issue
Block a user