Marty Oehme
95c3305cbb
vifm enters last open dirs by default. vmm alias opens vifm with the pwd as the opened dir instead. Passing along arbitrary paths to vm also opens vifm there.
12 lines
377 B
Bash
12 lines
377 B
Bash
#!/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
|
|
type vifm >/dev/null 2>&1 && alias vmm="vifm ${PWD}"
|
|
|
|
# Check for existence of vifmrun command. If found, substitute vifm with it.
|
|
type vifmrun >/dev/null 2>&1 && alias vifm=vifmrun
|
|
|
|
|