Merge branch 'master' of git.blakenorth.net/home/git/dotfiles

This commit is contained in:
PowerUser64 2021-11-14 20:25:21 -08:00
commit d656786a14
2 changed files with 10 additions and 10 deletions

View file

@ -19,12 +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

17
.zshrc
View file

@ -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 >>>
@ -424,7 +423,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