Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _run_sandbox() {
- if [ -d $1 ] ; then
- echo 'Running ~/'$1
- echo '__________' >> ~/sandboxes
- echo '# ~/' $1 >> ~/sandboxes
- run-sandbox ~/$1 | tee -a ~/sandboxes
- echo '==========' >> ~/sandboxes
- else
- echo '~/' $1 ' does not exists'
- fi
- }
- alias run_proposals="_run_sandbox job-proposals-binder"
- alias run_profile="_run_sandbox profile-binder"
- alias run_mystats="_run_sandbox my-stats-frontend"
- alias run_onboarding="_run_sandbox onboarding-binder"
- # open this settings file and read it on save
- alias settings="vi ~/.bash_profile && source ~/.bash_profile"
- alias profile="cd ~/profile-binder"
- alias profile_ui="profile && cd fe-ui-components"
- alias proposals_build="profile_ui && node_modules/grunt-cli/bin/grunt build-dev --pkg=profile"
- alias proposals_watch="profile_ui && grunt watch-dev --pkg=profile"
- alias proposals="cd ~/job-proposals-binder"
- alias proposals_ui="proposals && cd fe-ui-components"
- alias proposals_build="proposals_ui && node_modules/grunt-cli/bin/grunt build-dev --pkg=proposals"
- alias proposals_watch="proposals_ui && grunt watch-dev --pkg=proposals"
- alias onboarding="cd ~/onboarding-binder"
- alias onboarding_ui="onboarding && cd fe-ui-components"
- alias onboarding_build="onboarding_ui && node_modules/grunt-cli/bin/grunt build-dev --pkg=onboarding"
- alias onboarding_watch="onboarding_ui && grunt watch-dev --pkg=onboarding"
- alias mystats="cd ~/my-stats-frontend"
- alias mystats_ui="mystats && cd fe-ui-components"
- alias mystats_build="mystats_ui && node_modules/grunt-cli/bin/grunt build-dev --pkg=mystats"
- alias mystats_watch="mystats_ui && grunt watch-dev --pkg=mystats"
- alias ssh_profile="ssh root@`sandbox-ip <container_id>`"
- alias ssh_proposals="ssh root@`sandbox-ip <container_id>`"
- alias ssh_onboarding="ssh root@`sandbox-ip <container_id>`"
- alias ssh_mystats="ssh root@`sandbox-ip <container_id>`"
- # highlights the command line and shows the branch
- # useful to easily identify current branch and source of terminal by color
- parse_git_branch() {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
- }
- PS1="\u@\h \[\033[31m\]\w - \$(parse_git_branch)\[\033[00m\] $ "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement