dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6f1c70b6bc11080265e4782e290e24a7b7d68419
parent 5b00fa0a53c61ac4239aa2c025844d1d29438067
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 16 Dec 2018 16:33:11 +0100

git home and open now works for other repositories

Before, I hardcoded github into the alias. Now it uses regex
substitutions so it works with basically any remote.


Former-commit-id: b0d15211dfb97ddca5d96603cf093b2fc9ae3b72
Diffstat:
Mgit/gitconfig | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/git/gitconfig b/git/gitconfig @@ -42,7 +42,9 @@ pnf = pull --no-ff fuckitall = reset --hard HEAD up-sub = "!git submodule foreach 'git fetch origin --tags; git checkout master; git pull' && git add . && git commit -m 'Updated submodules';git submodule update --recursive --checkout --force" - home = "!git remote show origin | awk -F ': ' '/Fetch/ {print $2}' | sed 's/git@github.com:/https:\\/\\/github.com\\//'" + home = "!git remote show origin \ + | awk -F ': ' '/Fetch/ {print $2}' \ + | sed 's/git@\\([^:]*\\):/https:\\/\\/\\1\\//'" open = "!open $(git home)" dad = "!curl https://icanhazdadjoke.com/ && git add"