From db94a5a2e499e54d503bba463e3dd90fe78ab5d6 Mon Sep 17 00:00:00 2001 From: Release Bot Date: Sat, 17 Mar 2018 00:39:46 +0000 Subject: [PATCH] v0.1.57 --- README.md | 15 +- .aliases => bash/.aliases | 454 +++++++++++++++++----------- .bash_profile => bash/.bash_profile | 0 .bashrc => bash/.bashrc | 0 package.json | 2 +- 5 files changed, 293 insertions(+), 178 deletions(-) rename .aliases => bash/.aliases (50%) rename .bash_profile => bash/.bash_profile (100%) rename .bashrc => bash/.bashrc (100%) diff --git a/README.md b/README.md index eced25f7..cc33d35b 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,10 @@ A few options are available: ## What's in the box -Within the release you'll find the following files and folders s: +Within the release you'll find the following files and folders: ``` . -├── .bash_profile ├── .curlrc ├── .eslintrc ├── .gitignore @@ -51,9 +50,14 @@ Within the release you'll find the following files and folders s: ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dotfiles.png +├── ISSUE_TEMPLATE.md ├── Icon\r ├── LICENSE ├── README.md +├── bash +│   ├── .aliases +│   ├── .bash_profile +│   └── .bashrc ├── homebrew │   ├── brewfile.sh │   └── install.sh @@ -77,7 +81,6 @@ We are committed to preserving and fostering a diverse, welcoming community. Ple * See [Dotfiles Release](https://github.com/reedia/dotfiles/releases) list. - ## License This project is licensed under the MIT License - see the [LICENSE](https://github.com/reedia/dotfiles/blob/master/LICENSE) file for details @@ -89,9 +92,9 @@ This project is licensed under the MIT License - see the [LICENSE](https://githu [Dotfiles](https://dotfiles.io) is beautifully crafted by these people and a bunch of awesome [contributors](https://github.com/reedia/dotfiles/graphs/contributors) -| [![Sebastien Rousseau](https://avatars0.githubusercontent.com/u/1394998?s=117)](http://sebastienrousseau.co.uk) | -| :-------------------------------------------------------------------------------------------------------------: | -| [Sebastien Rousseau](https://github.com/sebastienrousseau) | +| [![Sebastien Rousseau](https://avatars0.githubusercontent.com/u/1394998?s=117)](http://sebastienrousseau.co.uk) | [![Graham Colgate](https://avatars0.githubusercontent.com/u/35816108?s=117)](https://github.com/gramtech) | +| :-------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------: | +| [Sebastien Rousseau](https://github.com/sebastienrousseau) | [Graham Colgate](https://github.com/gramtech) | ## About Reedia diff --git a/.aliases b/bash/.aliases similarity index 50% rename from .aliases rename to bash/.aliases index 6224b49c..e03df9a1 100644 --- a/.aliases +++ b/bash/.aliases @@ -1,286 +1,398 @@ #!/bin/bash -l -# Allow aliases to be with sudo -# Please refer to http://www.shellperson.net/using-sudo-with-an-alias/ +# --------------------------------------------------------------------------- +# +# Description: Mac OS X Dotfiles - Simply designed to fit your shell life. +# +# Sections: +# +# 1. Allow aliases to be with sudo +# 2. Generic aliases +# 3. Quicker navigation +# 4. Jekyll +# 5. Heroku's commands +# 6. Ionic commands +# 7. Emulate iOS using different Apple devices +# 8. Git SCM Cheats +# 9. App engine commands +# 10. Add an "alert" alias for long running commands. +# 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages +# 12. Shorter commands for `Homebrew`. +# 13. Speed-up Terminal load time by clearing system logs +# 14. Empty the Trash on all mounted volumes and the main HDD +# 15. Open the device simulators +# 16. Recursively delete .DS_Store files +# 17. Hidden Files +# 18. Clean up LaunchServices to remove duplicates in the "Open With" menu +# 19. Run a screen saver on the Desktop +# 20. Things for Subversion +# 21. Application launchers +# 22. Recommended 'top' invocation to minimize resources +# 23. Networking +# 24. Limit Ping to 5 ECHO_REQUEST packets +# 25. Wget with resume +# 26. Searching +# 27. Find memory hogs +# 28. Python Paths +# 29. Find CPU hogs +# # +# --------------------------------------------------------------------------- # + + +# --------------------------------------------------------------------------- +# 1. Allow aliases to be with sudo +# Please refer to http://www.shellperson.net/using-sudo-with-an-alias/ +# --------------------------------------------------------------------------- alias sudo='sudo ' -# Generic Aliases +# Common +alias reload='~/.bash_profile' + +# Purging Xcode DerivedData +alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' + + +# --------------------------------------------------------------------------- +# 2. Generic aliases +# --------------------------------------------------------------------------- +alias c='clear' +alias checkperms='sudo /usr/libexec/repair_packages --verify --standard-pkgs --volume /' +alias DT='tee ~/Desktop/terminalOut.txt' # DT: Pipe content to file on MacOS Desktop +alias du="du -h" +alias e='open -a "Visual Studio Code"' +alias edit='open -a "Visual Studio Code"' +alias grep="grep --color" +alias h='history' alias kp="ps auxwww" -alias locale='locale -a | grep UTF-8' -alias ls='ls -FGlAhp' alias l='ls -FGlAhp' alias la='ls -lisa' alias ll='ls -lisa' +alias locale='locale -a | grep UTF-8' alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less' -alias h='history' -alias r='reload' -alias du="du -h" -alias grep="grep --color" +alias ls='ls -FGlAhp' alias mate='open -a "Visual Studio Code"' -alias edit='open -a "Visual Studio Code"' -alias e='open -a "Visual Studio Code"' -alias xcode='open -a xcode' -alias preview="open -a Preview" alias mkdir='mkdir -pv' -alias checkperms='sudo /usr/libexec/repair_packages --verify --standard-pkgs --volume /' -alias repairperms='sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /' -alias DT='tee ~/Desktop/terminalOut.txt' # DT: Pipe content to file on MacOS Desktop -alias c='clear' alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths +alias preview="open -a Preview" +alias r='reload' +alias repairperms='sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /' +alias xcode='open -a xcode' -# Quicker navigation -alias ~="cd ~" -alias ..='cd ../' # Go back 1 directory level -alias ...='cd ../../' # Go back 2 directory levels -alias .3='cd ../../../' # Go back 3 directory levels -alias .4='cd ../../../../' # Go back 4 directory levels -alias .5='cd ../../../../../' # Go back 5 directory levels -alias .6='cd ../../../../../../' # Go back 6 directory levels + +# --------------------------------------------------------------------------- +# 3. Quicker navigation +# --------------------------------------------------------------------------- +alias ...='cd ../../' # Go back 2 directory levels +alias ..='cd ../' # Go back 1 directory level +alias .3='cd ../../../' # Go back 3 directory levels +alias .4='cd ../../../../' # Go back 4 directory levels +alias .5='cd ../../../../../' # Go back 5 directory levels +alias .6='cd ../../../../../../' # Go back 6 directory levels +alias less="less -R" # Make less always work with coloured input +alias oc='open -a Finder ./' alias path='echo -e ${PATH//:/\\n}' -alias showoptions='shopt' -alias opencurrent='open -a Finder ./' -alias zap='rm -i' #remove file with warning +alias so='shopt' +alias zap='rm -i' # Remove file with warning + -# Make less always work with colored input -alias less="less -R" +# --------------------------------------------------------------------------- +# 4. Jekyll +# --------------------------------------------------------------------------- -# Jekyll alias site-dev='JEKYLL_ENV=dev bundle exec jekyll serve --watch --trace' alias site-production='JEKYLL_ENV=production bundle exec jekyll serve --watch --trace' -# Heroku commands + +# --------------------------------------------------------------------------- +# 5. Heroku's commands +# --------------------------------------------------------------------------- + alias hcp='heroku console --remote production' alias hcs='heroku console --remote staging' alias hlp='heroku logs -t --remote production' alias hls='heroku logs -t --remote staging' -# Ionic commands -alias ionup='npm update -g cordova ionic' -alias ions="ionic serve" -alias ionios="ionic emulate ios" + +# --------------------------------------------------------------------------- +# 6. Ionic commands +# --------------------------------------------------------------------------- + alias ionandroid="ionic emulate android" -alias ioniosrun="ionic run ios" alias ionandroidrun="ionic run android" -alias ionicons="open http://ionicons.com/" -alias ionpa-ios="ionic platform add ios" -alias ionpa-android="ionic platform add android" -alias ionpr-ios="ionic platform remove ios" -alias ionpr-android="ionic platform remove android" alias ionb="ionic build" -alias ionbios="ionic build ios" alias ionbandroid="ionic build android" -alias ionosreset="ionpr-ios | ionpa-ios | ionbios" +alias ionbios="ionic build ios" alias iondroidreset="ionpr-android | ionpa-android | ionbandroid" +alias ionicons="open http://ionicons.com/" +alias ionios="ionic emulate ios" +alias ioniosrun="ionic run ios" +alias ionosreset="ionpr-ios | ionpa-ios | ionbios" +alias ionpa-android="ionic platform add android" +alias ionpa-ios="ionic platform add ios" +alias ionpr-android="ionic platform remove android" +alias ionpr-ios="ionic platform remove ios" +alias ions="ionic serve" +alias ionup='npm update -g cordova ionic' + + +# --------------------------------------------------------------------------- +# 7. Emulate iOS using different Apple devices +# --------------------------------------------------------------------------- -# Emulate iOS using different Apple devices alias ione-ios-4s="ionic emulate ios --target='iPhone-4s'" alias ione-ios-5="ionic emulate ios --target='iPhone-5'" alias ione-ios-5s="ionic emulate ios --target='iPhone-5s'" -alias ione-ios-6="ionic emulate ios --target='iPhone-6'" alias ione-ios-6-Plus="ionic emulate ios --target='iPhone-6-Plus'" +alias ione-ios-6="ionic emulate ios --target='iPhone-6'" alias ione-ios-iPad-2="ionic emulate ios --target='iPad-2'" -alias ione-ios-iPad-Retina="ionic emulate ios --target='iPad-Retina'" alias ione-ios-iPad-Air="ionic emulate ios --target='iPad-Air'" +alias ione-ios-iPad-Retina="ionic emulate ios --target='iPad-Retina'" + -# Git SCM Cheats +# --------------------------------------------------------------------------- +# 8. Git SCM Cheats +# --------------------------------------------------------------------------- + +alias c='clear' +alias flush="sudo dscacheutil -flushcache" alias g=git -alias gi='git init' -alias gs='clear && git status' -alias ga='git add' -alias gad='git add .' +alias ga="git add" alias gaa='git add --all' +alias gad='git add .' alias gau='git add --update' -alias gc='echo "for commiting use \"gcm\" & for checkout use \"gco\" this command is just for CLONING! - با تشکر" && git clone' -alias gcm='git commit -m ' -alias gce='git commit -a' +alias gb='git branch' +alias gbd='git branch -d' +alias gbl='git blame --date short' +alias gbr='git branch -r' +alias gbs='git branch -a' +alias gc="git commit" alias gcam='git commit --amend -m' -alias gl='git log' -alias glg='git log --oneline --graph --all --decorate' -alias glgc='clear && git log --oneline --graph --all --decorate' -alias gls='git log --pretty=format: --name-only --diff-filter=A | sort ' -alias glp='git log --pretty=oneline' -alias glps='git log --pretty=oneline --stat' -alias gl1d='git log --since=1.day.ago' -alias gl7d='git log --since=7.days.ago' -alias gl1w='git log --since=1.week.ago' +alias gce='git commit -a' +alias gcl='git config --list' +alias gcm='git commit -m ' +alias gco='git checkout' #undo to last commit alias gd='git diff' -alias gds='git diff --staged' alias gdh='git diff HEAD' alias gdh1='git diff HEAD^' alias gdh2='git diff HEAD^^' alias gdh5='git diff HEAD~5' -alias grh='git reset HEAD' #unstage some files -alias gco='git checkout' #undo to last commit -alias grsh='git reset --soft HEAD^' #role back to stage! -alias grhh='git reset --hard HEAD^' #role back fully to last commit! //be careful -alias gra='git remote add' -alias grao='git remote add origin' -alias grs='git remote -v' -alias gp='git push' +alias gds='git diff --staged' +alias gf='git fetch' +alias gi='git init' +alias gitremoveallmergedbranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' +alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" +alias gl1d='git log --since=1.day.ago' +alias gl1w='git log --since=1.week.ago' +alias gl7d='git log --since=7.days.ago' +alias glg='git log --oneline --graph --all --decorate' +alias glgc='clear && git log --oneline --graph --all --decorate' +alias gll="git log --graph --full-history --all --color" +alias glo="git log --pretty=oneline" +alias glp='git log --pretty=oneline' +alias glps='git log --pretty=oneline --stat' +alias gls='git log --pretty=format: --name-only --diff-filter=A | sort ' +alias glu="git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" +alias gm="git merge" +alias gnuke='git branch --merged | xargs git branch -d' +alias gob="git checkout -b" +alias gout="git checkout" alias gpo='git push -u origin' +alias gpo="git push origin" alias gpom='git push -u origin master' alias gpt='git push --tags' -alias gbs='git branch -a' -alias gb='git branch' #git branch test 07aeec9 --> to make a branch on an old commit! -alias gbr='git branch -r' -alias gbd='git branch -d' -alias grso='git remote show origin' -alias gm='git merge' +alias gpul='git pull' +alias gpum="git pull origin master" +alias gpus='git push' +alias gra='git remote add' +alias grao='git remote add origin' +alias grh='git reset HEAD' #unstage some files +alias grhh='git reset --hard HEAD^' #role back fully to last commit! //be careful alias grm='git rm' alias grmc='git rm --cached' -alias gt='git tag' -alias gts='git tag' -alias gta='git tag -a' -alias gbl='git blame --date short' -alias gcl='git config --list' -alias gitremoveallmergedbranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' -alias gb="git branch" -alias gs='git status -sb' -alias ga="git add" -alias gc="git commit" -alias gl="git log" -alias glo="git log --pretty=oneline" -alias glu="git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" -alias gout="git checkout" -alias gt="git tag" -alias grs="git reset" +alias grs='git remote -v' +alias grsh='git reset --soft HEAD^' #role back to stage! +alias grso='git remote show origin' alias grv="git revert" -alias gm="git merge" -alias gpom="git push origin master" -alias gpum="git pull origin master" -alias gd="git diff" -alias gpo="git push origin" -alias gob="git checkout -b" -alias gcm='git checkout master' -alias gf='git fetch' -alias gp='git pull' -alias c='clear' -alias gb='git branch' -alias gl='git l' +alias gs='git status -sb' alias gsu='git submodule update --recursive' -alias gd='git diff' -alias gnuke='git branch --merged | xargs git branch -d' -alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" -alias gll="git log --graph --full-history --all --color" +alias gt="git tag" +alias gta='git tag -a' +alias gts='git tag' +alias q='exit' +alias rmdir="rm –rf" + + +# --------------------------------------------------------------------------- +# 9. App engine commands +# --------------------------------------------------------------------------- -# appengine alias gaeauth='appcfg.py --oauth2' alias gaeup='appcfg.py --oauth2 update .' alias gaeupauth='appcfg.py --oauth2 -V dev update . && appcfg.py --oauth2 update . -V' -# Add an "alert" alias for long running commands. Use like so: -# sleep 10; alert + +# --------------------------------------------------------------------------- +# 10. Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +# --------------------------------------------------------------------------- + alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' -# bash_aliases -alias q='exit' -alias rmdir="rm –rf" -alias flush="sudo dscacheutil -flushcache" -# Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages +# --------------------------------------------------------------------------- +# 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages +# --------------------------------------------------------------------------- + alias update="sudo softwareupdate -i -a; brew cu --all; brew doctor; brew prune; clear;" -# Shorter commands for `Homebrew`. + +# --------------------------------------------------------------------------- +# 12. Shorter commands for `Homebrew`. +# --------------------------------------------------------------------------- + alias brewd="brew doctor" alias brewi="brew install" -alias brewu="brew uninstall" alias brews="brew search" -alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor' +alias brewu="brew uninstall" +alias brewupdate='brew update && brew upgrade && brew cleanup && brew prune && brew doctor' + + +# --------------------------------------------------------------------------- +# 13. Speed-up Terminal load time by clearing system logs +# --------------------------------------------------------------------------- -# Speed-up Terminal load time by clearing system logs alias speedup="sudo rm -rf /private/var/log/asl/*" -# Empty the Trash on all mounted volumes and the main HDD + +# --------------------------------------------------------------------------- +# 14. Empty the Trash on all mounted volumes and the main HDD # Also, clear Apple’s System Logs to improve shell startup speed +# --------------------------------------------------------------------------- + alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; speedup" -# Open the device simulators + +# --------------------------------------------------------------------------- +# 15. Open the device simulators +# --------------------------------------------------------------------------- alias iphone="open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app" -# cleanupDS: Recursively delete .DS_Store files -# ------------------------------------------------------------------- + +# --------------------------------------------------------------------------- +# 16. cleanupDS: Recursively delete .DS_Store files +# --------------------------------------------------------------------------- + alias cleanupDS="find . -type f -name '*.DS_Store' -ls -delete" + +# --------------------------------------------------------------------------- +# 17. Hidden Files # finderShowHidden: Show hidden files in Finder # finderHideHidden: Hide hidden files in Finder -# ------------------------------------------------------------------- -alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' +# --------------------------------------------------------------------------- + alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' +alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' + + +# --------------------------------------------------------------------------- +# 18. cleanupLS: Clean up LaunchServices to remove duplicates in the "Open With" menu +# --------------------------------------------------------------------------- -# cleanupLS: Clean up LaunchServices to remove duplicates in the "Open With" menu -# ----------------------------------------------------------------------------------- alias cleanupLS="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder" -# screensaverDesktop: Run a screensaver on the Desktop -# ----------------------------------------------------------------------------------- + +# --------------------------------------------------------------------------- +# 19. screensaverDesktop: Run a screensaver on the Desktop +# --------------------------------------------------------------------------- + alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' -# things for subversion -alias sm='svn move' + +# --------------------------------------------------------------------------- +# 20. Subversion +# --------------------------------------------------------------------------- + alias sa='svn add' +alias sc='svn commit' alias sd='svn delete' +alias sm='svn move' alias sr='svn rename' -alias sc='svn commit' alias ss='svn status' -# application launchers -alias www='open -a /Applications/Safari.app' -alias preview='open -a /Applications/Preview.app' -alias sql='open -a /Applications/Sequel\ Pro.app' + +# --------------------------------------------------------------------------- +# 21. Application launchers +# --------------------------------------------------------------------------- + alias css='open -a /Applications/CSSEdit.app' alias ipinfo='$HOME/Bin/gt-ipinfo.sh' +alias preview='open -a /Applications/Preview.app' +alias sql='open -a /Applications/Sequel\ Pro.app' +alias www='open -a /Applications/Safari.app' + + +# --------------------------------------------------------------------------- +# 22. ttop: Recommended 'top' invocation to minimize resources +# --------------------------------------------------------------------------- -# ttop: Recommended 'top' invocation to minimize resources -# ------------------------------------------------------------ -# Taken from this macosxhints article -# http://www.macosxhints.com/article.php?story=20060816123853639 -# ------------------------------------------------------------ alias ttop="top -R -F -s 10 -o rsize" -# --------------------------- -# 6. NETWORKING -# --------------------------- -alias myip='curl -s checkip.dyndns.org | sed -e "s/.*Current IP Address: //" -e "s/<.*$//"' # myip: Public facing IP Address -alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets +# --------------------------------------------------------------------------- +# 23. Networking +# --------------------------------------------------------------------------- + alias flushDNS='sudo killall -HUP mDNSResponder' # flushDNS: Flush out the DNS Cache -alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets -alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets -alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0 alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1 -alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections -alias op='sudo lsof -i -P' # List of open ports +alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets +alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets +alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets +alias myip='curl -s checkip.dyndns.org | sed -e "s/.*Current IP Address: //" -e "s/<.*$//"' # myip: Public facing IP Address +alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets +alias op='sudo lsof -i -P' # op: List of open ports +alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections +# --------------------------------------------------------------------------- +# 24. Limit Ping to 5 ECHO_REQUEST packets +# --------------------------------------------------------------------------- -## Limit Ping to 5 ECHO_REQUEST packets alias ping='ping -c 5' -## wget with resume +# --------------------------------------------------------------------------- +# 25. wget with resume +# --------------------------------------------------------------------------- + alias wget='wget -c' -# --------------------------- -# 4. SEARCHING -# --------------------------- + +# --------------------------------------------------------------------------- +# 26. Searching +# --------------------------------------------------------------------------- alias qfind="find . -name " # qfind: Quickly search for file -# memHogsTop, memHogsPs: Find memory hogs -# ----------------------------------------------------- -alias memHogsTop='top -l 1 -o rsize | head -20' + +# --------------------------------------------------------------------------- +# 27. memHogsTop, memHogsPs: Find memory hogs +# --------------------------------------------------------------------------- + alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10' +alias memHogsTop='top -l 1 -o rsize | head -20' + + +# --------------------------------------------------------------------------- +# 28. Python Paths +# --------------------------------------------------------------------------- # alias python='$(brew --prefix)/bin/python2' # alias python2='$(brew --prefix)/bin/python2' # alias python3='$(brew --prefix)/bin/python3' -# cpuHogs: Find CPU hogs -# ----------------------------------------------------- -alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10' -# Aliases -alias reload='~/.bash_profile' -# Purging Xcode DerivedData -alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' +# --------------------------------------------------------------------------- +# 29. cpuHogs: Find CPU hogs +# --------------------------------------------------------------------------- -alias brewupdate='brew update && brew upgrade && brew cleanup && brew prune && brew doctor' +alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10' \ No newline at end of file diff --git a/.bash_profile b/bash/.bash_profile similarity index 100% rename from .bash_profile rename to bash/.bash_profile diff --git a/.bashrc b/bash/.bashrc similarity index 100% rename from .bashrc rename to bash/.bashrc diff --git a/package.json b/package.json index 68b62956..6f7c0157 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reedia-dotfiles", - "version": "0.1.55", + "version": "0.1.57", "description": "Dotfiles - A set of Mac OS X configuration files", "keywords": [ "dotfiles",