Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #change command prompt path
- export PS1="\[\033[0m\]\w\$ "
- export LDFLAGS="-L/usr/local/opt/openssl/lib"
- export CPPFLAGS="-I/usr/local/opt/openssl/include"
- git config --global alias.squash '!f(){ git reset --soft HEAD~${1} && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"; };f'
- #npm commands:
- alias nom='npm'
- alias noi='npm install'
- alias ni='npm install && npm audit'
- alias nos='npm install --save '
- alias audit='npm audit fix'
- alias ns='npm run start'
- alias ys='yarn start'
- alias nt='npm run test'
- alias ndev='npm run dev'
- alias mon='nodemon'
- alias nsw='npm run start-watch'
- alias nw='npm run watch'
- alias tsf='tslint --fix --project .'
- alias mon='nodemon'
- alias test='npm test'
- alias gi='git pull origin master && npm install && npm run start'
- alias gpl='open http://localhost:4000/graphql'
- alias nr='npm run'
- alias gb='git branch'
- alias gbd='git branch -D'
- alias gcm='git checkout master'
- alias gc='git checkout'
- alias gm='git merge'
- alias push='git push'
- alias gpom='git pull origin master'
- #git commands:
- alias clone='git clone'
- alias got='git'
- 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"
- alias rebase='git pull --rebase origin'
- alias co='git checkout'
- alias gp='git push'
- #navigation:
- alias search='find . -name '
- alias cl='clear'
- alias ..='cd ..'
- alias f='open -a Finder ./'
- alias d='cd ~/Desktop'
- alias bp='code ~/.bash_profile'
- alias c='code .'
- alias dir='ls -a'
- alias ls='ls -a'
- alias bff='cd ~/Desktop/BFF'
- alias bffc='cd ~/Desktop/BFF_CORE'
- alias front='cd ~/Desktop/FRONT-END'
- alias build='npm run build'
- alias repos='cd ~/Desktop/repos'
- alias grh='git reset --hard'
- alias gf='git fetch'
- alias yt='yarn test'
- alias ytrd='yarn test:realData'
- #also to autocomplete as well as list/show hidden files, Put this in your ~/.inputrc:
- # set show-all-if-ambiguous on
- # zip current directory into current directory. give it an argument for zipped file name
- zip-dir() {
- zip -r ./"$1".zip .
- }
- # generate/open today's standup notes file
- stp() {
- code ~/Desktop/daily_standups/$(date +"%m_%d_%Y").md
- }
- # open directory for daily standups
- std() {
- open ~/Desktop/daily_standups/
- }
- dia() {
- vim ~/Desktop/diary/$(date +"%m_%d_%Y").txt
- }
- # open graphql playground
- pl() {
- current_dir=$(pwd)
- # TODO: use current dir to only run yarn install if in BFF dir
- open "http://localhost:4000/graphql"
- }
- # if files are in gitignore but aren't ignored:
- fgi() {
- git rm -r --cached .
- git add .
- git commit -m "Untrack files in .gitignore"
- }
- # calendar
- cal() {
- open "https://calendar.google.com/calendar/r"
- }
- # email
- mail() {
- open "https://mail.google.com/mail/u/0/#inbox"
- }
- # white noise / rain
- rain() {
- open "https://mynoise.net/NoiseMachines/rainNoiseGenerator.php?l=61626675543522000000&m=&d=0"
- }
- # figma
- fig() {
- open "https://www.figma.com/files/recent"
- }
- # backlog, infrastructure
- sl() {
- open -a "Slack"
- }
- # start bff
- nsbff() {
- bff
- ys
- }
- # start front end
- nsfront() {
- front
- ns
- }
- ybb() {
- bffc
- yarn build
- bff
- ys
- }
- # add a todo
- aad() {
- todo a "$*"
- }
- # mark a todo as done
- ddd() {
- todo d $1
- }
- export PATH="/usr/local/opt/openssl/bin:$PATH"
- # Setting PATH for Python 3.7
- # The original version is saved in .bash_profile.pysave
- PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
- export PATH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement