This commit is contained in:
William Carroll 2016-08-24 10:01:51 -04:00
commit 73a836b1dd
4 changed files with 43 additions and 4 deletions

View file

@ -2,8 +2,8 @@
I'm documenting this for personal use. Shell settings, vim settings, commonly used applications, et cetera...
### Commonly used applications
* homebrew - `key-repeat: 50ms delay-until-repeat: 300ms` necessary for procuring shell applications
* karabiner - increase your Mac's key repeat settings beyond the default range
* homebrew - necessary for procuring shell applications
* karabiner - `key-repeat: 50ms delay-until-repeat: 300ms` increase your Mac's key repeat settings beyond the default range
* spectacle - resize and move your windows with keyboard shortcuts
* iterm - substitute for Terminal application
* oh my zsh - z-shell for Mac

View file

@ -1,4 +1,4 @@
functon npms() {
npms() {
clear;
npm start;
}
@ -19,7 +19,6 @@ source $HOME/pc_settings/functions/history_functions.sh
# custom functions to work with vim
source $HOME/pc_settings/functions/vim_functions.sh
# generates placeholder content for FE work
function lorem {
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
@ -37,3 +36,17 @@ function wsearchpath {
echo $PATH | tr ':' '\n' | xargs -I {} find {} -type f -perm +111 -maxdepth 1 -name "*${1}*" -print | xargs basename
}
# tests an internet connection
function is_online {
wget -q --spider "http://google.com"
if [ $? -eq 0 ]; then
echo "Online"
return 0
else
echo "Offline"
return 1
fi
}

5
install.sh Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# install brew and its packages
. ./install_brew.sh

21
install_brew.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
echo "Installing Homebrew..."
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Homebrew installed."
echo ""
pushd "$HOME/pc_settings"
# install brew dependencies
echo "Installing Homebrew packages..."
cat ./brew_packages.txt | xargs brew install
echo "Homebrew packages installed."
echo ""
echo "Homebrew installed complete!"
echo ""
popd