From 15f7d7fb9e939c1b622ec54971106ca65f9e7322 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Sun, 3 Nov 2019 16:21:31 +0100 Subject: [PATCH] big update --- bin/.local/bin/alm | 16 +++++++ bin/.local/bin/git-f | 48 ++++++++++++++++++++ fish/.config/fish/command_timer.sh | 10 ++-- fish/.config/fish/functions/fish_prompt.fish | 4 ++ fish/.config/fish/functions/ll.fish | 4 ++ fish/.config/fish/functions/ls.fish | 4 ++ fish/.config/fish/functions/tree.fish | 4 ++ git/.gitconfig | 3 ++ i3wm/.config/i3/config | 3 +- mailcap/.mailcap | 3 ++ mutt/.config/mutt/muttrc | 3 ++ mutt/.config/mutt/waarp.sig | 2 + vifm/.config/vifm/vifmrc | 4 +- vim/.vimrc | 6 ++- 14 files changed, 104 insertions(+), 10 deletions(-) create mode 100755 bin/.local/bin/alm create mode 100755 bin/.local/bin/git-f create mode 100644 fish/.config/fish/functions/ll.fish create mode 100644 fish/.config/fish/functions/ls.fish create mode 100644 fish/.config/fish/functions/tree.fish diff --git a/bin/.local/bin/alm b/bin/.local/bin/alm new file mode 100755 index 0000000..8fd32ee --- /dev/null +++ b/bin/.local/bin/alm @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +ISSUE_ID= + +while read line; do + if [[ "$line" == X-Redmine-Issue-Id:* ]]; then + ISSUE_ID=${line##*: } + fi +done + +if [[ $ISSUE_ID = "" ]]; then + echo No issue id found + exit 2 +else + nohup xdg-open "https://alm.waarp.fr/issues/$ISSUE_ID" 1>/dev/null 2>&1 & +fi diff --git a/bin/.local/bin/git-f b/bin/.local/bin/git-f new file mode 100755 index 0000000..87f1ad5 --- /dev/null +++ b/bin/.local/bin/git-f @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +#set -x + +usage() { + cat <