mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 03:06:40 +00:00
fix(karabiner/custom): use correct identifier for Warp
This commit is contained in:
@@ -26,16 +26,16 @@ uvx = true
|
||||
"cargo:eza" = "latest"
|
||||
"cargo:kubectl-watch" = "latest"
|
||||
"cargo:paper-terminal" = "latest"
|
||||
"go:github.com/go-delve/delve/cmd/dlv" = "latest"
|
||||
"go:github.com/rakyll/hey" = "latest"
|
||||
"go:github.com/rogpeppe/godef" = "latest"
|
||||
"go:go.uber.org/mock/mockgen" = "latest"
|
||||
"go:golang.org/x/tools/cmd/godoc" = "latest"
|
||||
"go:golang.org/x/tools/cmd/goimports" = "latest"
|
||||
"go:golang.org/x/tools/gopls" = "latest"
|
||||
"go:golang.org/x/vuln/cmd/govulncheck" = "latest"
|
||||
"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "latest"
|
||||
"go:google.golang.org/protobuf/cmd/protoc-gen-go" = "latest"
|
||||
# "go:github.com/go-delve/delve/cmd/dlv" = "latest"
|
||||
# "go:github.com/rakyll/hey" = "latest"
|
||||
# "go:github.com/rogpeppe/godef" = "latest"
|
||||
# "go:go.uber.org/mock/mockgen" = "latest"
|
||||
# "go:golang.org/x/tools/cmd/godoc" = "latest"
|
||||
# "go:golang.org/x/tools/cmd/goimports" = "latest"
|
||||
# "go:golang.org/x/tools/gopls" = "latest"
|
||||
# "go:golang.org/x/vuln/cmd/govulncheck" = "latest"
|
||||
# "go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "latest"
|
||||
# "go:google.golang.org/protobuf/cmd/protoc-gen-go" = "latest"
|
||||
"npm:@mermaid-js/mermaid-cli" = "latest"
|
||||
"npm:@prettier/plugin-php" = "latest"
|
||||
"npm:dockerfile-language-server-nodejs" = "latest"
|
||||
@@ -65,7 +65,9 @@ uvx = true
|
||||
"pipx:yamllint" = "latest"
|
||||
1password-cli = "latest"
|
||||
actionlint = "latest"
|
||||
argo-rollouts = "latest"
|
||||
argocd = "latest"
|
||||
aws-cli = "2.17"
|
||||
bat = "latest"
|
||||
buf = "latest"
|
||||
cargo-binstall = "latest"
|
||||
@@ -92,9 +94,11 @@ jq = "latest"
|
||||
jwt = "latest"
|
||||
jwtui = "latest"
|
||||
k9s = "latest"
|
||||
kubecm = "latest"
|
||||
kubectl = "latest"
|
||||
kubectx = "latest"
|
||||
kubelogin = "latest"
|
||||
kubens = "latest"
|
||||
kustomize = "latest"
|
||||
lua = "latest"
|
||||
node = "lts"
|
||||
|
||||
@@ -23,6 +23,7 @@ SYMLINKS=(
|
||||
config/starship.toml
|
||||
config/tlrc/config.toml
|
||||
config/xkeysnail/config.py
|
||||
config/k9s
|
||||
erlang
|
||||
gemrc
|
||||
gitconfig
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,280 +1,309 @@
|
||||
{
|
||||
"description": "Emacs key bindings [option+keys] (rev 5) [custom]",
|
||||
"manipulators": [
|
||||
"description": "Emacs key bindings [option+keys] (rev 5) [custom]",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp$"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "v",
|
||||
"modifiers": {
|
||||
"mandatory": ["option"],
|
||||
"optional": ["caps_lock", "shift"]
|
||||
}
|
||||
},
|
||||
"to": [{ "key_code": "page_up" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp$"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "b",
|
||||
"modifiers": {
|
||||
"mandatory": ["option"],
|
||||
"optional": ["caps_lock", "shift"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow",
|
||||
"modifiers": ["left_option"]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp$"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "f",
|
||||
"modifiers": {
|
||||
"mandatory": ["option"],
|
||||
"optional": ["caps_lock", "shift"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow",
|
||||
"modifiers": ["left_option"]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp$"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "d",
|
||||
"modifiers": {
|
||||
"mandatory": ["option"],
|
||||
"optional": ["caps_lock"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_forward",
|
||||
"modifiers": ["left_option"]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "v",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"option"
|
||||
],
|
||||
"optional": [
|
||||
"caps_lock",
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "page_up"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "b",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"option"
|
||||
],
|
||||
"optional": [
|
||||
"caps_lock",
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow",
|
||||
"modifiers": [
|
||||
"left_option"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "f",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"option"
|
||||
],
|
||||
"optional": [
|
||||
"caps_lock",
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow",
|
||||
"modifiers": [
|
||||
"left_option"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"bundle_identifiers": [
|
||||
"^org\\.gnu\\.Emacs$",
|
||||
"^org\\.gnu\\.AquamacsEmacs$",
|
||||
"^org\\.gnu\\.Aquamacs$",
|
||||
"^org\\.pqrs\\.unknownapp\\.conkeror$",
|
||||
"^com\\.microsoft\\.rdc$",
|
||||
"^com\\.microsoft\\.rdc\\.",
|
||||
"^net\\.sf\\.cord$",
|
||||
"^com\\.thinomenon\\.RemoteDesktopConnection$",
|
||||
"^com\\.itap-mobile\\.qmote$",
|
||||
"^com\\.nulana\\.remotixmac$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
|
||||
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
|
||||
"^com\\.teamviewer\\.TeamViewer$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.2X\\.Client\\.Mac$",
|
||||
"^com\\.OpenText\\.Exceed-TurboX-Client$",
|
||||
"^com\\.realvnc\\.vncviewer$",
|
||||
"^com\\.citrix\\.receiver\\.icaviewer",
|
||||
"^com\\.apple\\.Terminal$",
|
||||
"^com\\.googlecode\\.iterm2$",
|
||||
"^co\\.zeit\\.hyperterm$",
|
||||
"^co\\.zeit\\.hyper$",
|
||||
"^io\\.alacritty$",
|
||||
"^org\\.alacritty$",
|
||||
"^net\\.kovidgoyal\\.kitty$",
|
||||
"^com\\.mitchellh\\.ghostty$",
|
||||
"^org\\.vim\\.",
|
||||
"^com\\.qvacua\\.VimR$",
|
||||
"^com\\.vmware\\.fusion$",
|
||||
"^com\\.vmware\\.horizon$",
|
||||
"^com\\.vmware\\.view$",
|
||||
"^com\\.parallels\\.desktop$",
|
||||
"^com\\.parallels\\.vm$",
|
||||
"^com\\.parallels\\.desktop\\.console$",
|
||||
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
|
||||
"^com\\.citrix\\.XenAppViewer$",
|
||||
"^com\\.vmware\\.proxyApp\\.",
|
||||
"^com\\.parallels\\.winapp\\.",
|
||||
"^com\\.utmapp\\.UTM$",
|
||||
"^org\\.x\\.X11$",
|
||||
"^com\\.apple\\.x11$",
|
||||
"^org\\.macosforge\\.xquartz\\.X11$",
|
||||
"^org\\.macports\\.X11$",
|
||||
"^com\\.sublimetext\\.",
|
||||
"^com\\.microsoft\\.VSCode$",
|
||||
"^com\\.todesktop\\.",
|
||||
"^dev\\.warp\\.Warp"
|
||||
],
|
||||
"type": "frontmost_application_unless"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "d",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"option"
|
||||
],
|
||||
"optional": [
|
||||
"caps_lock"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_forward",
|
||||
"modifiers": [
|
||||
"left_option"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -7,13 +7,31 @@
|
||||
# ==============================================================================
|
||||
|
||||
list_go_global_packages() {
|
||||
for bin in $(ls -1 ~/.go/bin); do
|
||||
go version -m ~/.go/bin/$bin | grep '^[[:space:]]path' | awk '{ print $2 }'
|
||||
local bindir="${GOBIN:-$(go env GOBIN)}"
|
||||
if [ -z "$bindir" ]; then
|
||||
echo "GOBIN is not set"
|
||||
return 1
|
||||
fi
|
||||
|
||||
for cmd in $(ls -1 "${GOBIN}"); do
|
||||
go version -m "${GOBIN}/${cmd}" | grep '^[[:space:]]path' | awk '{ print $2 }'
|
||||
done
|
||||
}
|
||||
|
||||
install_go_global_packages() {
|
||||
local packages=(
|
||||
github.com/fatih/gomodifytags@latest
|
||||
github.com/go-delve/delve/cmd/dlv@latest
|
||||
github.com/josharian/impl@latest
|
||||
github.com/rakyll/hey@latest
|
||||
github.com/rogpeppe/godef@latest
|
||||
go.uber.org/mock/mockgen@latest
|
||||
golang.org/x/tools/cmd/godoc@latest
|
||||
golang.org/x/tools/cmd/goimports@latest
|
||||
golang.org/x/tools/gopls@latest
|
||||
golang.org/x/vuln/cmd/govulncheck@latest
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
)
|
||||
|
||||
for package in "${packages[@]}"; do
|
||||
|
||||
@@ -30,14 +30,35 @@ if command-exists kubectl; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Download completion scripts for kubectx and kubens from their git repo at
|
||||
# their respective versions. This is required as neither command has an option
|
||||
# to output their completion scripts, unlike most tools.
|
||||
_setup-kubectx-completion() {
|
||||
local cmd="$1"
|
||||
local dir="$HOME/.local/share/mise/installs/kubectx/latest/completion"
|
||||
local src="${dir}/_${cmd}.zsh"
|
||||
local version
|
||||
local src_url
|
||||
local tmpfile
|
||||
|
||||
if [[ ! -f "$src" ]]; then return; fi
|
||||
# If the command already has completions, don't do anything.
|
||||
if whence -w "_${cmd}" > /dev/null; then return; fi
|
||||
|
||||
setup-completions "$cmd" "$src" cat "$src"
|
||||
tmpfile="$(mktemp -d)/_${cmd}.zsh"
|
||||
version="$(printf '%s' "$(command "$cmd" --version 2> /dev/null)")"
|
||||
version="${version#v}"
|
||||
src_url="https://github.com/ahmetb/kubectx/raw/refs/tags/v${version}/completion/_${cmd}.zsh"
|
||||
|
||||
echo "Completion script for ${cmd} (v#{version}) not found. Download and install?"
|
||||
echo
|
||||
echo " Download from: ${src_url}"
|
||||
echo " Save to: ${tmpfile}"
|
||||
echo
|
||||
read -q "REPLY?Continue? [y/N]:" || return
|
||||
echo
|
||||
echo
|
||||
|
||||
curl -L "$src_url" -o "${tmpfile}" &&
|
||||
echo &&
|
||||
setup-completions "$cmd" "$(command-path "$cmd")" cat "$tmpfile"
|
||||
}
|
||||
|
||||
if command-exists kubectx; then
|
||||
|
||||
@@ -67,6 +67,5 @@ install_ruby_global_packages() {
|
||||
yard
|
||||
)
|
||||
|
||||
gem install --no-document rbenv-rehash
|
||||
gem install --no-document "${packages[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user