diff --git a/.profile b/.profile index a7262b9..29e2c2f 100644 --- a/.profile +++ b/.profile @@ -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' diff --git a/updateThings.sh b/updateThings.sh index 7a6c103..f1b2d3a 100755 --- a/updateThings.sh +++ b/updateThings.sh @@ -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