Allow entering vifm in pwd with vmm alias
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.
This commit is contained in:
parent
a736a107df
commit
95c3305cbb
2 changed files with 6 additions and 1 deletions
|
@ -3,5 +3,10 @@
|
|||
# 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
|
||||
|
||||
|
||||
|
|
|
@ -11,5 +11,5 @@ mkfifo "$FIFO_UEBERZUG" >/dev/null
|
|||
trap cleanup EXIT 2>/dev/null
|
||||
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash 2>&1 >/dev/null &
|
||||
|
||||
vifm
|
||||
vifm $1
|
||||
cleanup
|
||||
|
|
Loading…
Reference in a new issue