Created
November 26, 2014 09:42
-
-
Save kamituel/f16d142b6347b61b10ff to your computer and use it in GitHub Desktop.
Bash profile
This file contains hidden or 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
export EDITOR=vim | |
export VISUAL=$EDITOR | |
alias git-modified-by-me="git log --oneline --author=\"[email protected]\" | awk '{ print $1; }' | xargs git show --pretty="format:" --name-only | sort | uniq" | |
alias pprint-json='python -mjson.tool' | |
alias adb_interesting="adb logcat | perl -ne 'print unless m{(E/Profiler|I/rmt_storage|D/wpa_supplicant|D/skia|./ALSADevice|D/alsa_ucm|D/DHCP|D/qdhwcomposer|./AudioHardwareALSA|D/AudioResourceManager|I/AutoMounter|./Sensors|E/mm-camera|./adsprpc|E/alsa_ucm|./MediaPlayerFactory|I/VolumeManager|./Vold|./CameraService|./mediaserver|./wcnss_service|./mm-camera-intf|WifiWorker component|./QCOM PowerHAL|./AudioFlinger|./AudioUsbALSA|./ALSAStreamOps|./AudioPolicyService|./EventHub|./InputReader|./nsVolume|./libEGL|./Adreno-EGL|./qdhwcomposer|./qdutils|./TrackUtils|./OMXMaster|./AudioUsbALSA)}'" | |
function find-grep { | |
find . -iname "$1" -exec grep -H "$2" '{}' \; | |
} | |
function Graph { | |
git log --graph --oneline --decorate=short --all --simplify-by-decoration --author=`git config user.email` | |
} | |
# Mac | |
alias listening-ports='sudo lsof -i -P | grep -i listen' | |
alias gotosleep='pmset sleepnow' | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment