diff --git a/.bash_aliases b/.bash_aliases new file mode 100755 index 00000000..b4efa6be --- /dev/null +++ b/.bash_aliases @@ -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' diff --git a/.bash_profile b/.bash_profile index 357ea5eb..a5977705 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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; diff --git a/brew.sh b/brew.sh index 02086d99..3e335641 100755 --- a/brew.sh +++ b/brew.sh @@ -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 diff --git a/install.sh b/install.sh index f5c1f295..d2379c1e 100755 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/vscode-extensions.vsix b/vscode-extensions.vsix new file mode 100644 index 00000000..68b7634c --- /dev/null +++ b/vscode-extensions.vsix @@ -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