asciinema - 命令录制
录制
asciinema rec [filename.json]
播放
asciinema play <filename.json>
rename - 重命名
➜ ls 1.txt 3.txt 5.txt 7.txt got.jpg test.rb 2.txt 4.txt 6.txt do.txt test.dot ➜ rename 's/([0-9]).txt/file_$1.txt/' *.txt ➜ ls do.txt file_2.txt file_4.txt file_6.txt got.jpg test.rb file_1.txt file_3.txt file_5.txt file_7.txt test.dot
删除 ".DS_Store"
设置
vi ~/.zshrc source ~/.zshrc
alias listdir='find ./ -name ".DS_Store" -depth' alias cleardir='find ./ -name ".DS_Store" -depth -delete'
Usage Example
listdir cleardir