You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
18 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. hashes='\033[0;32m'
  2. words='\033[0;36m'
  3. yellow='\033[1;33m'
  4. NC='\033[0m'
  5. blackText='\e[1;30m'
  6. whitebg='\e[47m'
  7. #echo -e "${hashes}███████████████████████████████████████████████████████████████████████████████████████████████████████████████████${NC}"
  8. #echo "${yellow} Only things that are hard are worth having ${NC}"
  9. /usr/local/bin/node /Users/joshfabean/Git/profile-text/index.js
  10. # run NVIM instead of VIM
  11. alias vim='nvim'
  12. # rerun last command with sudo in front (I dont think this works)
  13. alias please='eval "sudo $(fc -ln -1)"'
  14. # open current directory in Atom
  15. alias atom='open -a Atom ./'
  16. # gen settings
  17. alias ssh="ssh -A" # forward ssh keys to server
  18. alias cp='cp -iv' # prompt when overwriting and verbose
  19. alias mv='mv -iv' # prompt when overwriting and verbose
  20. alias ll='ls -FGlAhp'
  21. alias du1='du -h -d 1'
  22. # networking
  23. alias myip='curl ip.appspot.com' # show public IP
  24. # build out Android firmware for OmniBox
  25. alias buildfirmware='
  26. cd ~/Code_Koalas/omni/firmware/update; zip -r update_new *;
  27. mv update_new.zip ../;
  28. cd ..;
  29. echo -e "${words}compressing your firmware...${NC}";
  30. java -Xmx2024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 update_new.zip update.zip;
  31. echo -e "${yellow}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-${NC}";
  32. echo -e "${yellow}|/\| Enjoy your new firmware ^_^ |/\|${NC}";
  33. echo -e "${yellow}|\/| \e[0;90m More query, no hesitate mush to ask ${yellow}|\/|${NC}";
  34. echo -e "${yellow}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-${NC}"'
  35. # compile out and sign the OmniBox app
  36. alias buildapp="
  37. echo -e '${hashes}One fresh app coming up!${NC}'
  38. cd ~/Sites/omnibox;
  39. phonegap build android;
  40. cd platforms/android;
  41. ant release;
  42. echo -e '${hashes}Enjoy your new app hot off the compiler!${NC}'
  43. open /Users/joshfabean/Sites/omnibox/platforms/android/bin/;
  44. echo -e '\033[34;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'
  45. echo -e '\033[35;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0${NC}'
  46. echo -e '\033[45;5m IF THIS IS FOR PRODUCTION SWITCH TO PRODUCTION AND TAG THIS OR ELSE!!!!!!\033[0 ${NC}'
  47. echo -e '\033[36;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'
  48. echo -e '\033[37;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'"
  49. # build not signed app
  50. alias notsigned="phonegap build android --verbose && phonegap run android --verbose"
  51. # grunt build trial app
  52. alias trialapp='
  53. echo -e "${yellow}trial app *grunt*${NC}";
  54. grunt --target=trial;
  55. '
  56. # open Chrome & Chrome Canary in no security mode for testing
  57. alias chrome="open /Applications/Google\ Chrome.app --args --disable-web-security"
  58. alias chromecan="open /Applications/Google\ Chrome\ Canary.app/ --args --disable-web-security"
  59. # adb logcat aliases to show me better things
  60. alias logcat='adb logcat -v long -s "CordovaLog CordovaWebView CordovaActivity"'
  61. alias longcat="adb logcat -v long"
  62. # lock screen when I leave my desk you cannot trust people
  63. alias afk='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
  64. # open mps which is a spotify from terminal thing
  65. alias spotify='mps'
  66. # drush cc all is too long
  67. alias dc='drush cc all'
  68. # drush sql-sync omnibox site
  69. alias gimmeomnibox='drush sql-sync @p-omnibox_tv @local-omniboxtv -y'
  70. #drush sql-dump to file
  71. alias drushdump='drush sql-dump --result-file=starter.sql'
  72. #add drupal golden core to project
  73. alias addgolden='git remote add golden git@gitlab.codekoalas.com:golden/golden-drupal-core.git'
  74. alias addgolen='addgolden'
  75. #resource my profile
  76. alias sourceme='source ~/.profile'
  77. #todo.sh
  78. alias todo='todo.sh'
  79. # channeling Justin & alisiasing my git
  80. alias gs='g status'
  81. alias ga='g add'
  82. alias gc='g commit'
  83. alias gcm='g commit -m'
  84. alias gpod='g pull origin dev'
  85. alias gpos='g pull origin staging'
  86. alias gpop='g pull origin production'
  87. # my path
  88. export PATH="/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/joshfabean/Development/android/sdk/tools:/Users/joshfabean/Development/android/sdk/platform-tools:$PATH"
  89. export NVM_DIR="/Users/joshfabean/.nvm"
  90. [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
  91. export ANDROID_HOME="/usr/local/opt/android-sdk"
  92. export PATH=$PATH:$ANDROID_HOME/tools
  93. export PATH=$PATH:$ANDROID_HOME/platform-tools
  94. export PATH="$PATH:/Applications/DevDesktop/drush"