mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-09 05:51:04 +00:00
feat(config): fish configs
This commit is contained in:
9
config/fish/functions/__macos_mac_defaults_query.fish
Normal file
9
config/fish/functions/__macos_mac_defaults_query.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
# @halostatue/fish-macos/functions/__macos_mac_defaults_query.fish:v7.0.0
|
||||
|
||||
function __macos_mac_defaults_query
|
||||
if set --function value (defaults read $argv[1] $argv[2] 2>/dev/null)
|
||||
echo $value
|
||||
else
|
||||
echo $argv[3]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user