Compare commits
2 Commits
383e96efec
...
c72372296c
Author | SHA1 | Date | |
---|---|---|---|
c72372296c | |||
9247ec3937 |
@ -45,6 +45,9 @@ git() {
|
|||||||
if [ "$1" = "take" ]; then
|
if [ "$1" = "take" ]; then
|
||||||
/usr/local/bin/git clone $2
|
/usr/local/bin/git clone $2
|
||||||
cd $(basename $2 | sed 's/\.git$//')
|
cd $(basename $2 | sed 's/\.git$//')
|
||||||
|
elif [ "$1" = "commit" ]; then
|
||||||
|
shift
|
||||||
|
/usr/local/bin/git commit -s $@
|
||||||
else
|
else
|
||||||
/usr/local/bin/git $@
|
/usr/local/bin/git $@
|
||||||
fi
|
fi
|
||||||
|
10
.gitconfig
10
.gitconfig
@ -8,8 +8,16 @@
|
|||||||
[core]
|
[core]
|
||||||
editor = /usr/bin/vim
|
editor = /usr/bin/vim
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
pager = git-split-diffs --color | less -RFX
|
|
||||||
|
|
||||||
|
[pager]
|
||||||
|
diff = delta
|
||||||
|
log = delta
|
||||||
|
reflog = delta
|
||||||
|
show = delta
|
||||||
|
|
||||||
|
[delta]
|
||||||
|
line-numbers = true
|
||||||
|
side-by-side = true
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -36,6 +36,7 @@ pre-reqs: ## Install all required binaries.
|
|||||||
which btm > /dev/null || cargo install bottom; \
|
which btm > /dev/null || cargo install bottom; \
|
||||||
which procs > /dev/null || brew install procs; \
|
which procs > /dev/null || brew install procs; \
|
||||||
which dog > /dev/null || brew install dog; \
|
which dog > /dev/null || brew install dog; \
|
||||||
|
which delta > /dev/null || brew install git-delta; \
|
||||||
which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \
|
which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \
|
||||||
brew install gpg gawk coreutils; \
|
brew install gpg gawk coreutils; \
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions; \
|
git clone https://github.com/zsh-users/zsh-autosuggestions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions; \
|
||||||
@ -73,6 +74,7 @@ upgrade: ## Upgrade all required binaries.
|
|||||||
which btm > /dev/null && cargo install bottom; \
|
which btm > /dev/null && cargo install bottom; \
|
||||||
which procs > /dev/null && brew upgrade procs; \
|
which procs > /dev/null && brew upgrade procs; \
|
||||||
which dog > /dev/null && brew upgrade dog; \
|
which dog > /dev/null && brew upgrade dog; \
|
||||||
|
which delta > /dev/null && brew upgrade git-delta; \
|
||||||
which switcher > /dev/null && brew upgrade switch; \
|
which switcher > /dev/null && brew upgrade switch; \
|
||||||
cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && git pull && cd -; \
|
cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && git pull && cd -; \
|
||||||
cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; \
|
cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; \
|
||||||
|
Loading…
Reference in New Issue
Block a user