Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating CASK for brew install and .bash_aliases #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Shortcuts
alias ch='history | grep "git commit"'
alias hg='history | grep'
alias yt='subl ~/Google\ Drive/YouTube/Scripts/'
alias cyt='cd ~/Google\ Drive/YouTube/Scripts/'
alias oyt='open ~/Google\ Drive/YouTube/Scripts/'

# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
colorflag="--color"
else # OS X `ls`
colorflag="-G"
fi

# List all files colorized in long format, including dot files
alias la="ls -lahF ${colorflag}"

# Always use color output for `ls`
alias ls="command ls ${colorflag}"
export LS_COLORS='no=00:fi=00:di=04;35:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'

export LSCOLORS='Gxfxcxdxbxegedabagacad'


# Always enable colored `grep` output
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

# Enable aliases to be sudo’ed
alias sudo='sudo '

# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update_system='sudo softwareupdate -i -a'

# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"

# To prep before screencasts
alias tut_mode='defaults write com.apple.dock autohide -bool true && killall Dock;
defaults write com.apple.finder CreateDesktop -bool false && killall Finder;
defaults write com.apple.menuextra.clock IsAnalog -bool true && killall SystemUIServer;
rm -rf ~/.Trash/*;
rm -rf ~/Downloads/*'
alias reg_mode='defaults write com.apple.dock autohide -bool false && killall Dock;
defaults write com.apple.finder CreateDesktop -bool true && killall Finder;
defaults write com.apple.menuextra.clock IsAnalog -bool false && killall SystemUIServer;'

alias clean='rm -rf ~/.Trash/*; rm -rf ~/Downloads/*'
alias wipe_env='rm -rf ~/tutorial_env; python3 -m venv ~/tutorial_env'
alias tut_env='source ~/tutorial_env/bin/activate'
7 changes: 5 additions & 2 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Simplified dotfile for video recordings

# Load dotfiles:
for file in ~/.{bash_prompt,aliases,private}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
for file in ~/.{bash_prompt,bash_aliases,private}; do
if [ -f "$file" ]; then
. ~/."$file"
fi
# [ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;

Expand Down
55 changes: 41 additions & 14 deletions brew.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,50 @@
#!/usr/bin/env bash

brew tap leoafarias/fvm

# Install Brew Packages
brew install python
brew install tree
brew install openjdk
# Install flutter
brew install fvm
fvm install stable
fvm global
echo 'export PATH="$PATH":"$HOME/.pub-cache/bin"' >> ~/.zshrc
echo 'export PATH="$PATH":"$HOME/.pub-cache/bin"' >> ~/.bashrc


CASKS=(
google-chrome
firefox
sublime-text
virtualbox
sourcetree
spotify
discord
google-backup-and-sync
skype
gimp
vlc
hyperdock
font-source-code-pro
slack
font-fira-code
intellij-idea-ce
visual-studio-code
steam
docker
alfred
1password
phpstorm
macdown
)

# Install MacOS Applications
brew cask install google-chrome
brew cask install firefox
brew cask install sublime-text
brew cask install virtualbox
brew cask install sourcetree
brew cask install spotify
brew cask install discord
brew cask install google-backup-and-sync
brew cask install skype
brew cask install gimp
brew cask install vlc
brew cask install hyperdock
brew cask install divvy
for app in "${CASKS[@]}"
do
echo "brew install $app on your MacOS."
brew install --cask $app &>/dev/null
done

# Install Source Code Pro Font
brew tap homebrew/cask-fonts
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ homedir=$1
dotfiledir=${homedir}/dotfiles

# list of files/folders to symlink in ${homedir}
files="bash_profile bashrc bash_prompt aliases private"
files="bash_profile bashrc bash_prompt .bash_aliases private"

# change to the dotfiles directory
echo "Changing to the ${dotfiledir} directory"
Expand Down
37 changes: 37 additions & 0 deletions vscode-extensions.vsix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
bajdzis.vscode-twig-pack
ecmel.vscode-html-css
GitHub.vscode-pull-request-github
liximomo.sftp
MehediDracula.php-namespace-resolver
ms-azuretools.vscode-docker
ms-vscode-remote.remote-containers
whatwedo.twig
2gua.rainbow-brackets
awesomektvn.scratchpad
bloody-ux.sftp-sync
bmewburn.vscode-intelephense-client
brapifra.phpserver
CoenraadS.bracket-pair-colorizer
cstrachan.vcard
donjayamanne.githistory
eamodio.gitlens
eriklynd.json-tools
felipecaputo.git-project-manager
felixfbecker.php-debug
felixfbecker.php-intellisense
HookyQR.beautify
liximomo.sftp
matsken.git-stash-viewer
mechatroner.rainbow-csv
MehediDracula.php-namespace-resolver
mikestead.dotenv
mohsen1.prettify-json
ms-azuretools.vscode-docker
ms-mssql.mssql
neilbrayfield.php-docblocker
phiter.phpstorm-snippets
phproberto.vscode-php-getters-setters
pranaygp.vscode-css-peek
streetsidesoftware.code-spell-checker
vscode-icons-team.vscode-icons
yatki.vscode-surround