Skip to content

Commit

Permalink
Updated zsh with machine settings, launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Craig committed Feb 24, 2018
1 parent e804f8e commit 45332f5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
24 changes: 24 additions & 0 deletions launch_projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
declare -A projects=(['1']=slingshot
['2']=produktizr
['3']=produktizr-front-end
['4']=produktizr-back-end
['5']=dotfiles
['6']=alienblood
['7']=heron
['8']=total-immersion-pocast
['9']=tipcast)

echo "What would you like to work on?"
echo "1: Slingshot
2: Produktizr Front End
3: Produktizr Back End
4: Dotfiles
5: Alienblood
6: HERON
7: Total Immersion Backend
8: Total Immersion Files"
read choice

name=${projects[$choice]}
~/Dotfiles/session_scripts/$name.sh $name && tmux attach -t $name

13 changes: 4 additions & 9 deletions zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ source $ZSH/oh-my-zsh.sh

alias s="source $dotfiles_location/zsh.sh"
alias ctags="`brew --prefix`/bin/ctags"
alias l=my_fuzzy_ls
my_fuzzy_ls() {
#Find files the match the fuzzy query
ls *$1*
}

#t for tree
alias t=mytree
Expand Down Expand Up @@ -71,7 +66,6 @@ alias gm="git commit -m "
alias gpu="git push"
alias gpl="git pull"
alias gr="git checkout HEAD -- $1"
#alias gb="git reflog | egrep -io "moving from ([^[:space:]]+)" | awk '{ print $3 }' | awk ' !x[$0]++' | head -n5"
alias vg="vim $($scripts_location/get_conflicted_files.sh)"
alias git_log="git log --graph --pretty=format:'[%h] -%d %an %cr: %s' --abbrev-commit --date=relative"
alias h="history"
Expand Down Expand Up @@ -105,9 +99,7 @@ alias mo="cd ${HOME}/Dropbox/TomCraig/Movies"
alias mu="cd ${HOME}/Dropbox/TomCraig/Music"
alias tv="cd ${HOME}/Dropbox/TomCraig/TV"

# EROS
alias erosstart="$dotfiles_location/session_scripts/eros.sh && tmux attach -t eros"
alias erostop="cd ~/Dropbox/TomCraig/Projects/EROS/"
alias launch="$dotfiles_location/launch_projects.sh"

# SSH
alias sshariston="ssh tom@10.0.1.3"
Expand All @@ -119,6 +111,9 @@ if [[ $host == *"Darwin"* ]]; then
alias rm="trash"
alias cat="ccat"
fi
if [[ $host == *"tcraig"* ]]; then
alias spacemacs="/usr/local/Cellar/emacs-plus/25.3/bin/emacs --no-window"
fi

eval $(thefuck --alias)

Expand Down

0 comments on commit 45332f5

Please sign in to comment.