文件操作 - terlar.fish
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/fish/tools/web_config/sample_prompts/terlar.fish
编辑文件内容
# name: Terlar # author: terlar - https://github.com/terlar function fish_prompt --description 'Write out the prompt' set -l last_status $status # User set_color $fish_color_user echo -n (whoami) set_color normal echo -n '@' # Host set_color $fish_color_host echo -n (hostname -s) set_color normal echo -n ':' # PWD set_color $fish_color_cwd echo -n (prompt_pwd) set_color normal __terlar_git_prompt __fish_hg_prompt echo if not test $last_status -eq 0 set_color $fish_color_error end echo -n '➤ ' set_color normal end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件