文件操作 - open.fish
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/fish/functions/open.fish
编辑文件内容
# # This allows us to use 'open FILENAME' to open a given file in the default # application for the file. # if not test (uname) = Darwin function open --description "Open file in default application" if count $argv >/dev/null switch $argv[1] case -h --h --he --hel --help __fish_print_help open return 0 end end if type -q -f cygstart for i in $argv cygstart $i end else if type -q -f xdg-open for i in $argv xdg-open $i end else echo (_ 'No open utility found. Try installing "xdg-open" or "xdg-utils".') end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件