Browse Source

added some docker functions

master
Josh Fabean 7 years ago
parent
commit
d6268caf8b
No known key found for this signature in database GPG Key ID: 5EF27D86AD60946D
2 changed files with 21 additions and 0 deletions
  1. +15
    -0
      .profile
  2. +6
    -0
      updateThings.sh

+ 15
- 0
.profile View File

@ -8,6 +8,7 @@ whitebg='\e[47m'
#echo -e "${hashes}███████████████████████████████████████████████████████████████████████████████████████████████████████████████████${NC}"
#echo "${yellow} Only things that are hard are worth having ${NC}"
/usr/local/bin/node /Users/joshfabean/Git/profile-text/index.js
/usr/local/bin/todo.sh ls
# run NVIM instead of VIM
alias vim='nvim'
@ -95,8 +96,22 @@ alias addgolen='addgolden'
#resource my profile
alias sourceme='source ~/.profile'
# docker commands
ddrupal() {
docker exec $1 /usr/local/bin/drupal --root=/var/www/site/docroot ${*:2}
}
ddrush() {
docker exec $1 /usr/local/src/drush/drush --root=/var/www/site/docroot ${*:2}
}
dlogin() {
docker exec -ti $1 /bin/bash
}
#todo.sh
alias todo='todo.sh'
alias t='todo.sh'
# channeling Justin & alisiasing my git
alias gs='g status'


+ 6
- 0
updateThings.sh View File

@ -1,11 +1,17 @@
#!/bin/bash
# update drupal console
echo 'updating Drupal console';
/usr/local/bin/drupal self-update;
# update nvm
echo 'updating nvm';
/usr/bin/curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash;w;
# update brew things
echo 'updating brew things';
/usr/local/bin/brew update && brew install `brew outdated`;
# update pip & all pip things
echo 'update pip & things';
/usr/local/bin/pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U

Loading…
Cancel
Save