From 27c3cb4d500606871c92e451f3b766d88763148f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 4 Feb 2017 22:08:28 +0100 Subject: Add random bookmark command, mpd/client launcher script --- fish/.config/fish/config.fish | 1 - fish/.config/fish/functions/music.fish | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 fish/.config/fish/functions/music.fish (limited to 'fish') diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index f47ea1a..3f16244 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -26,5 +26,4 @@ if [ (hostname) = "obelix" ] set PATH $PATH /usr/local/bin/ /usr/local/texlive/2014/bin/x86_64-linux ~/.cabal/bin/ ~/.local/bin/ ~/.gem/ruby/2.4.0/bin/ alias i='sxiv' - alias orb='open ~/webarchive/data/(ls ~/webarchive/data/ | sort -R | head -n 1)/index.html' end diff --git a/fish/.config/fish/functions/music.fish b/fish/.config/fish/functions/music.fish new file mode 100644 index 0000000..0f54f0f --- /dev/null +++ b/fish/.config/fish/functions/music.fish @@ -0,0 +1,9 @@ +function music --description "ncmpcpp launcher" + ps -e | grep mpd > /dev/null + + if test $status -eq 1 + mpd ~/.config/mpd/mpd.conf + end + + ncmpcpp +end -- cgit v1.2.3