From 7bce2f81cc2d4b7e80a1887c8ce8c5fcf4fcca28 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Fri, 4 Jan 2013 15:31:12 +0100 Subject: [PATCH] shortcut to display the url config of remote repo in a git root --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 25c7f8f..0c48e46 100644 --- a/.bashrc +++ b/.bashrc @@ -153,7 +153,7 @@ echo "rcp : copy with rsync/ssh" # default editor export EDITOR='gvim' -# If the output is smaller than the screen height is smaller, +# If the output is smaller than the screen height is smaller, # less will just cat it export LESS="-FX" @@ -175,6 +175,9 @@ HISTTIMEFORMAT='%F %T ' # Manually switch to the bépo keyboard layout alias bepo="setxkbmap -layout fr -variant bepo -option" +# shortcut to display the url config of remote repo in a git root +alias git_remotes="grep -A 2 \"\[remote\" .git/config|grep -v fetch|sed \"s/\[remote \\\"//\"|sed ':a;N;\$!ba;s/\"\]\n\s*url = /\t/g'" + # Super nice prompt source ~/.liquidprompt