Merge branch 'master' of git.blakenorth.net/home/git/dotfiles
This commit is contained in:
commit
d656786a14
2 changed files with 10 additions and 10 deletions
|
@ -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
17
.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 >>>
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue