dotfiles/vifm/scripts/vifm_rename_and_move_file.sh

13 lines
240 B
Bash
Raw Normal View History

2022-12-19 20:19:18 -07:00
#!/usr/bin/env bash
declare newname
newname="$(~/.configs_pointer/bin/rename_for_shell.sh "$@")"
if [[ $? -eq 0 ]]; then
if ! ~/.configs_pointer/bin/rename_and_move.sh "$@"; then
exit 1
fi
printf '%s' "$newname"
else
exit 2
fi