Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. #change command prompt path
  2. export PS1="\[\033[0m\]\w\$ "
  3. export LDFLAGS="-L/usr/local/opt/openssl/lib"
  4. export CPPFLAGS="-I/usr/local/opt/openssl/include"
  5. git config --global alias.squash '!f(){ git reset --soft HEAD~${1} && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"; };f'
  6.  
  7. #npm commands:
  8. alias nom='npm'
  9. alias noi='npm install'
  10. alias ni='npm install && npm audit'
  11. alias nos='npm install --save '
  12. alias audit='npm audit fix'
  13. alias ns='npm run start'
  14. alias ys='yarn start'
  15. alias nt='npm run test'
  16. alias ndev='npm run dev'
  17. alias mon='nodemon'
  18. alias nsw='npm run start-watch'
  19. alias nw='npm run watch'
  20. alias tsf='tslint --fix --project .'
  21. alias mon='nodemon'
  22. alias test='npm test'
  23. alias gi='git pull origin master && npm install && npm run start'
  24. alias gpl='open http://localhost:4000/graphql'
  25. alias nr='npm run'
  26. alias gb='git branch'
  27. alias gbd='git branch -D'
  28. alias gcm='git checkout master'
  29. alias gc='git checkout'
  30. alias gm='git merge'
  31. alias push='git push'
  32.  
  33. alias gpom='git pull origin master'
  34.  
  35. #git commands:
  36. alias clone='git clone'
  37. alias got='git'
  38. alias git-tree="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches"
  39. alias rebase='git pull --rebase origin'
  40. alias co='git checkout'
  41. alias gp='git push'
  42.  
  43. #navigation:
  44. alias search='find . -name '
  45. alias cl='clear'
  46. alias ..='cd ..'
  47. alias f='open -a Finder ./'
  48. alias d='cd ~/Desktop'
  49. alias bp='code ~/.bash_profile'
  50. alias c='code .'
  51. alias dir='ls -a'
  52. alias ls='ls -a'
  53. alias bff='cd ~/Desktop/BFF'
  54. alias bffc='cd ~/Desktop/BFF_CORE'
  55. alias front='cd ~/Desktop/FRONT-END'
  56. alias build='npm run build'
  57. alias repos='cd ~/Desktop/repos'
  58. alias grh='git reset --hard'
  59. alias gf='git fetch'
  60. alias yt='yarn test'
  61. alias ytrd='yarn test:realData'
  62. #also to autocomplete as well as list/show hidden files, Put this in your ~/.inputrc:
  63. # set show-all-if-ambiguous on
  64.  
  65. # zip current directory into current directory. give it an argument for zipped file name
  66. zip-dir() {
  67. zip -r ./"$1".zip .
  68. }
  69.  
  70. # generate/open today's standup notes file
  71. stp() {
  72. code ~/Desktop/daily_standups/$(date +"%m_%d_%Y").md
  73. }
  74.  
  75. # open directory for daily standups
  76. std() {
  77. open ~/Desktop/daily_standups/
  78. }
  79.  
  80. dia() {
  81. vim ~/Desktop/diary/$(date +"%m_%d_%Y").txt
  82. }
  83.  
  84.  
  85.  
  86. # open graphql playground
  87. pl() {
  88. current_dir=$(pwd)
  89. # TODO: use current dir to only run yarn install if in BFF dir
  90. open "http://localhost:4000/graphql"
  91. }
  92.  
  93.  
  94.  
  95. # if files are in gitignore but aren't ignored:
  96. fgi() {
  97. git rm -r --cached .
  98. git add .
  99. git commit -m "Untrack files in .gitignore"
  100. }
  101.  
  102. # calendar
  103. cal() {
  104. open "https://calendar.google.com/calendar/r"
  105. }
  106.  
  107. # email
  108. mail() {
  109. open "https://mail.google.com/mail/u/0/#inbox"
  110. }
  111.  
  112.  
  113.  
  114. # white noise / rain
  115. rain() {
  116. open "https://mynoise.net/NoiseMachines/rainNoiseGenerator.php?l=61626675543522000000&m=&d=0"
  117. }
  118.  
  119. # figma
  120. fig() {
  121. open "https://www.figma.com/files/recent"
  122. }
  123.  
  124.  
  125.  
  126. # backlog, infrastructure
  127. sl() {
  128. open -a "Slack"
  129. }
  130.  
  131. # start bff
  132. nsbff() {
  133. bff
  134. ys
  135. }
  136.  
  137. # start front end
  138. nsfront() {
  139. front
  140. ns
  141. }
  142.  
  143.  
  144.  
  145. ybb() {
  146. bffc
  147. yarn build
  148. bff
  149. ys
  150. }
  151.  
  152. # add a todo
  153. aad() {
  154. todo a "$*"
  155. }
  156.  
  157. # mark a todo as done
  158. ddd() {
  159. todo d $1
  160. }
  161.  
  162.  
  163.  
  164. export PATH="/usr/local/opt/openssl/bin:$PATH"
  165.  
  166. # Setting PATH for Python 3.7
  167. # The original version is saved in .bash_profile.pysave
  168. PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
  169. export PATH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement