Created
July 10, 2014 12:40
-
-
Save dublado/5b6067bc98669475faee to your computer and use it in GitHub Desktop.
install meld git diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script para a instalação do Meld e configuração do git diff | |
#!/bin/bash | |
echo "Installing meld..." | |
apt-get install meld -y -qq | |
echo "Meld [OK]" | |
echo "Creating meld custom script..." | |
rm ~/.config/git_meld_diff.sh | |
touch ~/.config/git_meld_diff.sh | |
echo "#!/bin/bash" >> ~/.config/git_meld_diff.sh | |
echo "meld \"\$5\" \"\$2\"" >> ~/.config/git_meld_diff.sh | |
chmod +x ~/.config/git_meld_diff.sh | |
echo "Meld custom script [OK]" | |
echo "Configuring git diff external..." | |
git config --global diff.external ~/.config/git_meld_diff.sh | |
echo "Git configuration [OK]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment