core: add 'delta' to tools installed
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ emacs.d/elpa/
|
|||||||
emacs.d/auto-save-list
|
emacs.d/auto-save-list
|
||||||
emacs.d/history
|
emacs.d/history
|
||||||
emacs.d/recentf
|
emacs.d/recentf
|
||||||
|
bin/delta*
|
||||||
|
|||||||
15
install
15
install
@@ -22,6 +22,17 @@ for rc in *rc *profile tmux.conf bashrc.d mutt ; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Delta
|
||||||
|
DELTA_VER=0.4.1
|
||||||
|
if [ "$(uname -s)" == 'Darwin' ]; then
|
||||||
|
DELTA_PATH=delta-${DELTA_VER}-x86_64-apple-darwin
|
||||||
|
elif [ "$(uname -s)" == 'Linux' ] ; then
|
||||||
|
DELTA_PATH=delta-${DELTA_VER}-x86_64-unknown-linux-gnu
|
||||||
|
fi
|
||||||
|
DELTA_URL=https://github.com/dandavison/delta/releases/download/${DELTA_VER}/${DELTA_PATH}.tar.gz
|
||||||
|
echo "Installing Delta $DELTA_PATH"
|
||||||
|
(curl -L ${DELTA_URL} | tar xzf - "${DELTA_PATH}/delta") && mv ${DELTA_PATH}/delta $BASE/bin/delta-${DELTA_VER} && ln -s $BASE/bin/delta-${DELTA_VER} $BASE/bin/delta && rm -r ${DELTA_PATH}
|
||||||
|
|
||||||
# git-prompt
|
# git-prompt
|
||||||
# if [ ! -e ~/.git-prompt.sh ]; then
|
# if [ ! -e ~/.git-prompt.sh ]; then
|
||||||
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
|
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
|
||||||
@@ -49,7 +60,7 @@ if [ "$(uname -s)" = 'Darwin' ]; then
|
|||||||
|
|
||||||
brew install \
|
brew install \
|
||||||
fd ag wget git bat tmux bash-completion \
|
fd ag wget git bat tmux bash-completion \
|
||||||
vim macvim
|
vim macvim jq
|
||||||
|
|
||||||
# ripgrep ant cmake cmus coreutils cscope exiftool doxygen liboauth \
|
# ripgrep ant cmake cmus coreutils cscope exiftool doxygen liboauth \
|
||||||
# fish graphviz imagemagick leiningen sbt gnupg \
|
# fish graphviz imagemagick leiningen sbt gnupg \
|
||||||
@@ -69,6 +80,8 @@ fi
|
|||||||
|
|
||||||
git config --global user.email "paul@blacksun.org.uk"
|
git config --global user.email "paul@blacksun.org.uk"
|
||||||
git config --global user.name "Paul Walker"
|
git config --global user.name "Paul Walker"
|
||||||
|
git config --global core.pager "delta --line-numbers --dark"
|
||||||
|
git config --global delta.side-by-side true
|
||||||
# git config --global user.signingKey FEF9C627
|
# git config --global user.signingKey FEF9C627
|
||||||
# git config --global commit.gpgsign true
|
# git config --global commit.gpgsign true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user