commit c4e523f9bba51d3dc3e8079c8f5dddc7cfcb7585
parent 71c1c876c7157a1c082774c0fc30b4490b205422
Author: Anders Damsgaard <andersd@riseup.net>
Date: Tue, 5 Dec 2017 14:54:29 -0500
add fzf-mpd
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/init/50_zsh.sh b/init/50_zsh.sh
@@ -6,5 +6,9 @@ if [ ! -d zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
fi
if [ ! -d zsh-git-prompt ]; then
- git clone https://github.com/olivierverdier/zsh-git-prompt.git
-fi)
+ git clone https://github.com/olivierverdier/zsh-git-prompt.git
+fi
+if [ ! -d fzf-mpd ]; then
+ git clone https://github.com/anders-dc/fzf-mpd
+fi
+)
diff --git a/links/.tmux.conf b/links/.tmux.conf
@@ -188,6 +188,7 @@ bind-key -n C-M-s display "#(mpc stop | tr '\n' ' ')"
bind-key -n C-M-n display "#(mpc next | tr '\n' ' ')"
bind-key -n C-M-b display "#(mpc prev | tr '\n' ' ')"
bind-key -n C-M-r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc play | tr '\n' ' ')"
+bind-key -n C-M-a split-window -p 50 "mpc listall | fzf --preview='id3info ~/Music/{}' | mpc add"
# Use alternate prefix (C-b) for grouping music-control bindings
#bind -n C-b switchc -Tmoreprefix
diff --git a/links/.zshrc b/links/.zshrc
@@ -293,6 +293,8 @@ fi
source ~/code/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
[ -f ~/code/zsh-git-prompt/zshrc.sh ] && source ~/code/zsh-git-prompt/zshrc.sh
+[ -f ~/code/fzf-mpd/fzf-mpd.zsh ] && source ~/code/fzf-mpd/fzf-mpd.zsh
+
if _has cabal && _has stack; then
GIT_PROMPT_EXECUTABLE='haskell'
fi