mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-28 14:05:42 +08:00
14 lines
277 B
Fish
14 lines
277 B
Fish
![]() |
# Quick Look a specified file
|
||
|
|
||
|
function ql
|
||
|
if count $argv >/dev/null
|
||
|
switch $argv[1]
|
||
|
case -d --description
|
||
|
echo "Quick Look a specified file"
|
||
|
return 0
|
||
|
end
|
||
|
end
|
||
|
if count $argv > 0
|
||
|
qlmanage >/dev/null ^/dev/null -p Applications/ &
|
||
|
end
|
||
|
end
|