Skip to content

Commit

Permalink
Install user-specific bins
Browse files Browse the repository at this point in the history
- Install diff-highlight in to $HOME/bin
  • Loading branch information
garethrees committed Sep 6, 2015
1 parent 7764ff2 commit e47e989
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/install
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ for source in "$HOME/.bin/"*; do
ln -sv "$source" "$target"
fi
done

source "$DOTFILES_DIR/script/install-user-bins.sh"
14 changes: 14 additions & 0 deletions script/install-user-bins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Install diff-highlight on Ubuntu/Debian
if [[ -f /usr/share/doc/git/contrib/diff-highlight/diff-highlight ]]
then
cp -uv /usr/share/doc/git/contrib/diff-highlight/diff-highlight "$HOME/bin"
chmod u+x "$HOME/bin/diff-highlight"
fi

# Install diff-highlight on OS X
if [[ -f /usr/local/Library/LinkedKegs/git/share/git-core/contrib/diff-highlight/diff-highlight ]]
then
ln -sf /usr/local/Library/LinkedKegs/git/share/git-core/contrib/diff-highlight/diff-highlight "$HOME/bin/diff-highlight"
fi

0 comments on commit e47e989

Please sign in to comment.