From 3db1a646a732fe8f6e8c4b1f8a0683be21979c27 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 13 Nov 2021 04:16:54 -0800 Subject: [PATCH 1/4] git: new alias rem for remote because I can't be bothered to type three letters more likely so I can feel superior to the people who do take the time tp type the three letters --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index d045752..3b0843f 100644 --- a/.gitconfig +++ b/.gitconfig @@ -22,6 +22,7 @@ lg = tree pl = pull ps = push + rem = remote s = status st = status sub = submodule From 00f7e63d74ccb670fcc5a29faf985365814127cd Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 13 Nov 2021 04:19:16 -0800 Subject: [PATCH 2/4] zsh: bug fix in gloned() --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 482d2a4..5bac703 100644 --- a/.zshrc +++ b/.zshrc @@ -425,7 +425,7 @@ # Git cLONE cD gloned() { - git clone "$1" + git clone "$1" || return $? if ! cd "$(echo "$1" | sed 's/\.git//g' | rev | cut -d '/' -f 1 | rev)";then echo 'Error: Could not `cd` into the repo' return 1 From 6c7c9aea5ca8e042e87191116bbeebc8c364db96 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 13 Nov 2021 20:47:45 -0800 Subject: [PATCH 3/4] zsh: alias mod: hste is now hst --- .zshrc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index 5bac703..cbd8d12 100644 --- a/.zshrc +++ b/.zshrc @@ -121,7 +121,7 @@ nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \ zshrc='$EDITOR ~/.zshrc' \ fstab='sudoedit /etc/fstab' \ - hste='$EDITOR $HISTFILE' \ + hst='$EDITOR $HISTFILE' \ # Git cLONE alias glone="git clone" @@ -168,20 +168,19 @@ [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" # # TODO: remove all aliases that refrence programs which do not exist >>> + # alias fdsa=not_an_alias # validate_alias() { - # # check if the alias points to an alias - # if alias "$(alias lsd | grep -Po "(?<=').*(?=')")"; then - # : + # echo "validating alias $1" + # if alias "$1";then + # validate_alias ${1} # else - # # see if the thing the alias points to is an executable - # test -x "$(command -V "$1" | grep -Po "(?<=$1 is )/.*$")" - # fi # } # for ALIAS in $(alias | cut -d = -f 1);do - # validate_alias "$ALIAS" && + # ! validate_alias "$ALIAS" && # unalias "$ALIAS" && # echo "alias $ALIAS was removed" # done # <<< + } # <<< ### Functions >>> From 66e2791e80173f9fe9fe524dd2e60d04f6604150 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 13 Nov 2021 20:48:13 -0800 Subject: [PATCH 4/4] git: change: t mow means tree, and lg is gone just like their smartphone division! lol --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 3b0843f..e809ddf 100644 --- a/.gitconfig +++ b/.gitconfig @@ -19,13 +19,13 @@ cam = commit --amend ch = checkout d = diff - lg = tree pl = pull ps = push rem = remote s = status st = status sub = submodule + t = tree tree = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all # vim:noet