mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
refactors tilde-switch plugin
This commit is contained in:
parent
0ab9c43e73
commit
329fae95c1
1 changed files with 18 additions and 1 deletions
|
@ -19,4 +19,21 @@
|
|||
#
|
||||
# This solution taken from here: https://apple.stackexchange.com/a/353941
|
||||
#
|
||||
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}' > /dev/null
|
||||
|
||||
MAPPING=$(cat <<EOF
|
||||
{
|
||||
"UserKeyMapping":[
|
||||
{
|
||||
"HIDKeyboardModifierMappingSrc":0x700000035,
|
||||
"HIDKeyboardModifierMappingDst":0x700000064
|
||||
},
|
||||
{
|
||||
"HIDKeyboardModifierMappingSrc":0x700000064,
|
||||
"HIDKeyboardModifierMappingDst":0x700000035
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
hidutil property --set $MAPPING > /dev/null
|
||||
|
|
Loading…
Reference in a new issue