mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
migrate dotfiles to chezmoi
This commit is contained in:
9
run_onchange_before_21_diff-so-fancy.sh
Normal file
9
run_onchange_before_21_diff-so-fancy.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then
|
||||
echo "Installing diff-so-fance into .local/bin"
|
||||
if [ ! -d "$HOME/.local/lib/diff-so-fancy" ]; then
|
||||
git clone --depth 1 https://github.com/so-fancy/diff-so-fancy.git $HOME/.local/lib/diff-so-fancy
|
||||
fi
|
||||
ln -s $HOME/.local/lib/diff-so-fancy/diff-so-fancy $HOME/.local/bin/diff-so-fancy
|
||||
fi
|
||||
Reference in New Issue
Block a user