aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc1
-rwxr-xr-x.local/bin/wrappers/mocp2
2 files changed, 2 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 9c430c0..8d9a9f5 100644
--- a/.bashrc
+++ b/.bashrc
@@ -94,7 +94,6 @@ alias lsblk='lsblk -o NAME,MAJ:MIN,RM,SIZE,FSTYPE,RO,TYPE,MOUNTPOINT,MODEL'
alias lxc-attach='lxc-attach --clear-env --name'
alias lxc-ls='lxc-ls --fancy'
alias lynx='lynx -cfg ~/.config/lynx/lynx.cfg'
-alias mocp='mocp -M $XDG_CONFIG_HOME/moc'
alias newsboat='newsboat -c $XDG_CONFIG_HOME/newsboat/cache.db -u $XDG_CONFIG_HOME/newsboat/urls -C $XDG_CONFIG_HOME/newsboat/config'
alias nix-index='nix-index --db $XDG_DATA_HOME/nix-index'
alias nix-locate='nix-locate --db $XDG_DATA_HOME/nix-index'
diff --git a/.local/bin/wrappers/mocp b/.local/bin/wrappers/mocp
new file mode 100755
index 0000000..8828b25
--- /dev/null
+++ b/.local/bin/wrappers/mocp
@@ -0,0 +1,2 @@
+#!/bin/sh -eu
+$(which mocp --all | grep --invert-match "local/bin" | head --lines 1) -M "$HOME/.config/moc" "$@"