]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/mv-sha.sh
Huge tmux-fzf simplification with files quoting
[dotfiles.git] / bin / bin / mv-sha.sh
1 #!/bin/sh
2
3 [ $# -eq 0 ] && fs="$(find . -maxdepth 1 -type f)" || fs="$@"
4 for f in $fs ; do
5     mv -v "$f" $(sha1 -q "$f").${f##*.}
6 done