dotfiles

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

commit 880fcf4ac806991ee9ef0b63d7cdd42e29bd57db
parent f547b2da27047e32ab2db7349c2ae1e596ffdaa0
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 16 Dec 2018 16:05:20 +0100

Modified git home alias to work with SSH links

Just chained a sed command to the end, which substitutes the SSH part
for the HTTP URL. So if I do git open on an SSH-cloned repository, it
  still opens the right page.


Former-commit-id: 6b7b72c6ff6bfa0e1d68f0c83bec0909866459fa
Diffstat:
Mgit/gitconfig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git/gitconfig b/git/gitconfig @@ -42,7 +42,7 @@ 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}'" + home = "!git remote show origin | awk -F ': ' '/Fetch/ {print $2}' | sed 's/git@github.com:/https:\\/\\/github.com\\//'" open = "!open $(git home)" dad = "!curl https://icanhazdadjoke.com/ && git add"