dotfiles/.config/shell/rc.d/alias-vifm-to-vm.sh

11 lines
375 B
Bash
Raw Normal View History

2019-07-04 08:28:06 +00:00
#!/bin/sh
# Check for existence of vifm command. If found, substitute vifm with it.
type vifm >/dev/null 2>&1 && alias vm=vifm
# if vifm exists, also let me open current dir in vifm with vmm
2019-07-24 05:33:28 +00:00
type vifm >/dev/null 2>&1 && alias vmm='vifm ${PWD}'
2019-07-04 08:28:06 +00:00
# Check for existence of vifmrun command. If found, substitute vifm with it.
type vifmrun >/dev/null 2>&1 && alias vifm=vifmrun