Compare commits

...

2 Commits

Author SHA1 Message Date
c72372296c
Sign all commits
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-10-14 16:30:23 +01:00
9247ec3937
Added git diff pager 2021-10-14 16:27:11 +01:00
3 changed files with 14 additions and 1 deletions

View File

@ -45,6 +45,9 @@ git() {
if [ "$1" = "take" ]; then
/usr/local/bin/git clone $2
cd $(basename $2 | sed 's/\.git$//')
elif [ "$1" = "commit" ]; then
shift
/usr/local/bin/git commit -s $@
else
/usr/local/bin/git $@
fi

View File

@ -8,8 +8,16 @@
[core]
editor = /usr/bin/vim
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]
default = simple

View File

@ -36,6 +36,7 @@ pre-reqs: ## Install all required binaries.
which btm > /dev/null || cargo install bottom; \
which procs > /dev/null || brew install procs; \
which dog > /dev/null || brew install dog; \
which delta > /dev/null || brew install git-delta; \
which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \
brew install gpg gawk coreutils; \
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 procs > /dev/null && brew upgrade procs; \
which dog > /dev/null && brew upgrade dog; \
which delta > /dev/null && brew upgrade git-delta; \
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-syntax-highlighting && git pull && cd -; \