mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
feat: add nbdime
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
pager = sh -c 'command -v diff-so-fancy >/dev/null && exec diff-so-fancy || less --tabs=4 -RX'
|
||||
pager = less
|
||||
autocrlf = input
|
||||
attributesFile = /home/dbauer/.gitattributes
|
||||
attributesFile = {{ .chezmoi.homeDir }}/.gitattributes
|
||||
[alias]
|
||||
co = commit
|
||||
ch = checkout
|
||||
@@ -56,3 +56,16 @@
|
||||
program = /usr/bin/gpg
|
||||
[include]
|
||||
path = ~/.gitconfig.local
|
||||
[diff "jupyternotebook"]
|
||||
command = git-nbdiffdriver diff
|
||||
[merge "jupyternotebook"]
|
||||
driver = git-nbmergedriver merge %O %A %B %L %P
|
||||
name = jupyter notebook merge driver
|
||||
[difftool "nbdime"]
|
||||
cmd = git-nbdifftool diff \"$LOCAL\" \"$REMOTE\" \"$BASE\"
|
||||
[difftool]
|
||||
prompt = false
|
||||
[mergetool "nbdime"]
|
||||
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
|
||||
[mergetool]
|
||||
prompt = false
|
||||
|
||||
@@ -6,7 +6,7 @@ echo "Installing packages"
|
||||
echo "Updating sources..."
|
||||
sudo apt update -qq
|
||||
|
||||
for package in zsh xsel unzip git git-extras neovim git ripgrep; do
|
||||
for package in zsh xsel unzip git git-extras neovim git ripgrep pipx; do
|
||||
if dpkg -s "$package" >/dev/null 2>&1; then
|
||||
echo $package is already installed.
|
||||
else
|
||||
|
||||
16
run_onchange_before_26_nbdime.sh
Normal file
16
run_onchange_before_26_nbdime.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Install nbdime using pipx
|
||||
if ! command -v pipx &> /dev/null; then
|
||||
echo "pipx not found. failed to install nbdime"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if pipx list | grep -q nbdime; then
|
||||
echo "nbdime already installed. skipping."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Installing nbdime"
|
||||
pipx install nbdime
|
||||
Reference in New Issue
Block a user