Bash/Git: Refactor Git aliases, remove aliases exists in git-extras.
This commit is contained in:
@ -61,8 +61,8 @@ INVERT="$(tput sgr 1 0)"
|
||||
NOCOLOR="$(tput sgr0)"
|
||||
|
||||
# Load prompt and aliases
|
||||
for file in ~/dotfiles/includes/{bash_prompt,bash_aliases,bash_functions}; do
|
||||
[ -r "$file.bash" ] && source "$file.bash"
|
||||
for file in ~/dotfiles/includes/bash_{prompt,aliases,functions,git}.bash; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
unset file
|
||||
|
||||
|
@ -27,11 +27,6 @@
|
||||
s = status -sb
|
||||
l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset'
|
||||
ll = log --stat --abbrev-commit
|
||||
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $2 >> .gitignore
|
||||
this = !git init && git add . && git commit -m \"Initial commit.\"
|
||||
append = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
|
||||
undo = reset --mixed HEAD^
|
||||
conflicts = !git ls-files -u | awk '{print $4}' | sort -u
|
||||
[push]
|
||||
default = current
|
||||
|
||||
|
Reference in New Issue
Block a user