Browse Source

updated profile

master
Josh Fabean 6 years ago
parent
commit
70a590d575
2 changed files with 13 additions and 101 deletions
  1. +12
    -90
      .profile
  2. +1
    -11
      .zshrc

+ 12
- 90
.profile View File

@ -5,97 +5,35 @@ NC='\033[0m'
blackText='\e[1;30m'
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'
# fix my typos
alias bim='nvim'
# rerun last command with sudo in front (I dont think this works)
alias please='eval "sudo $(fc -ln -1)"'
# open current directory in Atom
alias atom='open -a Atom ./'
# gen settings
alias ssh="ssh -A" # forward ssh keys to server
alias cp='cp -iv' # prompt when overwriting and verbose
alias mv='mv -iv' # prompt when overwriting and verbose
alias ll='ls -FGlAhp'
alias du1='du -h -d 1'
# channeling Justin & alisiasing my git
alias gs='g status'
alias ga='g add'
alias gc='g commit'
alias gcm='g commit -m'
# networking
alias myip='curl ip.appspot.com' # show public IP
# build out Android firmware for OmniBox
alias buildfirmware='
cd ~/Code_Koalas/omni/firmware/update; zip -r update_new *;
mv update_new.zip ../;
cd ..;
echo -e "${words}compressing your firmware...${NC}";
java -Xmx2024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 update_new.zip update.zip;
echo -e "${yellow}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-${NC}";
echo -e "${yellow}|/\| Enjoy your new firmware ^_^ |/\|${NC}";
echo -e "${yellow}|\/| \e[0;90m More query, no hesitate mush to ask ${yellow}|\/|${NC}";
echo -e "${yellow}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-${NC}"'
# compile out and sign the OmniBox app
alias buildapp="
echo -e '${hashes}One fresh app coming up!${NC}'
cd ~/Sites/omnibox;
phonegap build android;
cd platforms/android;
ant release;
echo -e '${hashes}Enjoy your new app hot off the compiler!${NC}'
open /Users/joshfabean/Sites/omnibox/platforms/android/bin/;
echo -e '\033[34;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'
echo -e '\033[35;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0${NC}'
echo -e '\033[45;5m IF THIS IS FOR PRODUCTION SWITCH TO PRODUCTION AND TAG THIS OR ELSE!!!!!!\033[0 ${NC}'
echo -e '\033[36;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'
echo -e '\033[37;5m███████████████████████████████████████████████████████████████████████████████████████████████████████████████████\033[0'"
# build not signed app
alias notsigned="phonegap build android --verbose && phonegap run android --verbose"
# grunt build trial app
alias trialapp='
echo -e "${yellow}trial app *grunt*${NC}";
grunt --target=trial;
'
# open Chrome & Chrome Canary in no security mode for testing
alias chrome="open /Applications/Google\ Chrome.app --args --disable-web-security"
alias chromecan="open /Applications/Google\ Chrome\ Canary.app/ --args --disable-web-security"
# adb logcat aliases to show me better things
alias logcat='adb logcat -v long -s "CordovaLog CordovaWebView CordovaActivity"'
alias longcat="adb logcat -v long"
# lock screen when I leave my desk you cannot trust people
alias afk='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
# open mps which is a spotify from terminal thing
alias spotify='mps'
# drush cc all is too long
alias dc='drush cc all'
# drush sql-sync omnibox site
alias gimmeomnibox='drush sql-sync @p-omnibox_tv @local-omniboxtv -y'
#drush sql-dump to file
alias drushdump='drush sql-dump --result-file=starter.sql'
#add drupal golden core to project
alias addgolden='git remote add golden git@gitlab.codekoalas.com:golden/golden-drupal-core.git'
alias addgolen='addgolden'
#resource my profile
alias sourceme='source ~/.profile'
# I keep typing the R so why not
alias docker-composer='docker-compose'
# show my calendar
alias mycal='gcalcli agenda --calendar josh@codekoalas.com --calendar joshfabean@gmail.com'
# docker commands
ddrupal() {
docker exec $1 /usr/local/bin/drupal --root=/var/www/site/docroot ${*:2}
@ -108,27 +46,11 @@ ddrush() {
dlogin() {
docker exec -ti $1 /bin/bash
}
# I keep typing the R so why not
alias docker-composer='docker-compose'
#todo.sh
alias todo='todo.sh'
alias t='todo.sh'
# channeling Justin & alisiasing my git
alias gs='g status'
alias ga='g add'
alias gc='g commit'
alias gcm='g commit -m'
alias gpod='g pull origin dev'
alias gpos='g pull origin staging'
alias gpop='g pull origin production'
# drush commands are hard?
alias stagefileproxy='drush variable-set stage_file_proxy_origin'
alias themedebug='drush vset theme_debug 1'
# launch PICO-8 with logs
alias pico8='/Applications/PICO-8.app/Contents/MacOS/pico8'


+ 1
- 11
.zshrc View File

@ -84,19 +84,9 @@ source $ZSH/oh-my-zsh.sh
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#
dlogin() {
docker exec -ti $1 /bin/bash
}
alias docker-composer='docker-compose'
alias gs='g status'
#alias ga 'g add'
alias ci='composer install'
alias cu='composer update'
alias vim='nvim'
[ -z "NVM_DIR" ] && export NVM_DIR "$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec
source /home/joshfabean/.profile

Loading…
Cancel
Save