From 94ab1162c0efaae9fe336ed8cb0447c061a1a44c Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 29 Oct 2022 09:54:12 +0000 Subject: [PATCH] Update dotfiles/.profile --- dotfiles/.profile | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/dotfiles/.profile b/dotfiles/.profile index 1567ea63..a07a05b1 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -65,26 +65,6 @@ gitopen() { git remote -v | head -n 1 | awk -F "@" '{print $2}' | awk -F " " '{print $1}' | sed 's/:/\//g' | sed 's/.git//g' | awk '{print "http://"$1}' | xargs open } -glog() { - setterm -linewrap off 2>/dev/null - git --no-pager log --all --color=always --graph --abbrev-commit --decorate --date-order \ - --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' "$@" | - sed -E \ - -e 's/\|(\x1b\[[0-9;]*m)+\\(\x1b\[[0-9;]*m)+ /├\1─╮\2/' \ - -e 's/(\x1b\[[0-9;]+m)\|\x1b\[m\1\/\x1b\[m /\1├─╯\x1b\[m/' \ - -e 's/\|(\x1b\[[0-9;]*m)+\\(\x1b\[[0-9;]*m)+/├\1╮\2/' \ - -e 's/(\x1b\[[0-9;]+m)\|\x1b\[m\1\/\x1b\[m/\1├╯\x1b\[m/' \ - -e 's/╮(\x1b\[[0-9;]*m)+\\/╮\1╰╮/' \ - -e 's/╯(\x1b\[[0-9;]*m)+\//╯\1╭╯/' \ - -e 's/(\||\\)\x1b\[m (\x1b\[[0-9;]*m)/╰╮\2/' \ - -e 's/(\x1b\[[0-9;]*m)\\/\1╮/g' \ - -e 's/(\x1b\[[0-9;]*m)\//\1╯/g' \ - -e 's/^\*|(\x1b\[m )\*/\1⎬/g' \ - -e 's/(\x1b\[[0-9;]*m)\|/\1│/g' | - command less -r "$([ $# -eq 0 ] && echo "+/[^/]HEAD")" - setterm -linewrap on 2>/dev/null -} - # Open Mac OS X desktop on a Linux machine macosx() { docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:big-sur