aboutsummaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish')
-rw-r--r--fish/.config/fish/config.fish1
-rw-r--r--fish/.config/fish/functions/music.fish9
2 files changed, 9 insertions, 1 deletions
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