-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from trystan2k/release/1.9.0
Release/1.9.0
- Loading branch information
Showing
10 changed files
with
241 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export PATH_TO_PROJECTS="$HOME/Documents/Thiago" | ||
export SCREENSHOT_FOLDER=$HOME/Downloads/Screenshots | ||
export TEXT_EDITOR="Visual Studio Code" | ||
|
||
# This should be the last line of the file | ||
# For local changes | ||
# Don't make edits below this | ||
[ -f ".exports.local" ] && source ".exports.local" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Specific setups for MacOS sistem | ||
|
||
mkdir -p $SCREENSHOT_FOLDER | ||
|
||
# Set default screenshot location to a specific folder | ||
defaults write com.apply.screencapture location $SCREENSHOT_FOLDER |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
|
||
source .exports | ||
source .aliases | ||
source .macos | ||
|
||
# Initialize a few things | ||
init () { | ||
echo "Making a Projects folder in $PATH_TO_PROJECTS if it doesn't already exist" | ||
mkdir -p "$PATH_TO_PROJECTS" | ||
} | ||
|
||
# TODO : Delete symlinks to deleted files | ||
# Is this where rsync shines? | ||
# TODO - add support for -f and --force | ||
link () { | ||
echo "This utility will symlink the files in this repo to the home directory" | ||
echo "Proceed? (y/n)" | ||
read resp | ||
# TODO - regex here? | ||
if [ "$resp" = 'y' -o "$resp" = 'Y' ] ; then | ||
for file in $( ls -A | grep -vE '\.exclude*|\.git$|\.gitignore|.*.md' ) ; do | ||
ln -sv "$PWD/$file" "$HOME" | ||
done | ||
echo "Symlinking complete" | ||
else | ||
echo "Symlinking cancelled by user" | ||
return 1 | ||
fi | ||
} | ||
|
||
install_tools () { | ||
if [ $( echo "$OSTYPE" | grep 'darwin' ) ] ; then | ||
echo "This utility will install useful utilities using Homebrew/Git/others" | ||
echo "Proceed? (y/n)" | ||
read resp | ||
# TODO - regex here? | ||
if [ "$resp" = 'y' -o "$resp" = 'Y' ] ; then | ||
echo "Installing useful stuff using brew/git/others. This may take a while..." | ||
sh tools.exclude.sh | ||
else | ||
echo "Brew installation cancelled by user" | ||
fi | ||
else | ||
echo "Skipping installations using Homebrew/Git/Others because MacOS was not detected..." | ||
fi | ||
} | ||
|
||
init | ||
install_tools | ||
link |
Oops, something went wrong.