Start Synergy Client on login
"System Preferences" -> "Users & Groups" -> "Login Options" -> Enable "Automatic Login"
Create the following script as ~/start_synergy.sh:
#!/bin/sh
"System Preferences" -> "Users & Groups" -> "Login Options" -> Enable "Automatic Login"
Create the following script as ~/start_synergy.sh:
#!/bin/sh
| #!/bin/sh | |
| set -e | |
| if [ ! -f *.cabal ] | |
| then | |
| echo "You must run this script from the project root directory (where the .cabal file is)" | |
| exit 2 | |
| fi |
| #!/bin/bash | |
| set -e | |
| OUTPUT_PIPE=`mktemp -u` | |
| STDOUT_SYNC=`mktemp -u` | |
| STDERR_SYNC=`mktemp -u` | |
| mkfifo $OUTPUT_PIPE $STDOUT_SYNC $STDERR_SYNC | |
| exec > >(tee -a $OUTPUT_PIPE ; echo > $STDOUT_SYNC) |
| #!/bin/sh | |
| # init_darcs_in_git.sh | |
| # | |
| # This is a script that initializes a darcs repository that can be used for | |
| # managing private files in a git repository that should not be tracked by git | |
| # | |
| # The system is a simple hack, but it works quite elegantly in practice, darcs | |
| # and git do not get in each others way. | |
| # |