文件操作 - __fish_bind_test1.fish
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/fish/functions/__fish_bind_test1.fish
编辑文件内容
function __fish_bind_test1 set -l args set -l use_keys no for i in (commandline -poc) switch $i case -k --k --ke --key set use_keys yes case "-*" case "*" set args $args $i end end switch $use_keys case yes switch (count $args) case 1 return 0 end end return 1 end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件