mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-16 01:53:48 +00:00
feat(config): fish configs
This commit is contained in:
20
config/fish/functions/__macos_mac_lsclean.fish
Normal file
20
config/fish/functions/__macos_mac_lsclean.fish
Normal file
@@ -0,0 +1,20 @@
|
||||
# @halostatue/fish-macos/functions/__macos_mac_lsclean.fish:v7.0.0
|
||||
|
||||
function __macos_mac_lsclean
|
||||
argparse --name 'mac lsclean' h/help -- $argv
|
||||
or return 1
|
||||
|
||||
if set --query _flag_help
|
||||
echo 'Usage: mac lsclean [options]
|
||||
|
||||
Cleans the LaunchServices registration list.
|
||||
|
||||
Options:
|
||||
-h, --help Show this help'
|
||||
return 0
|
||||
end
|
||||
|
||||
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister \
|
||||
-kill -r -domain local -domain system -domain user
|
||||
and killall Finder
|
||||
end
|
||||
Reference in New Issue
Block a user