first commit
This commit is contained in:
		
						commit
						e7410994a3
					
				
					 67 changed files with 5154 additions and 0 deletions
				
			
		
							
								
								
									
										135
									
								
								dotfiles/aliases.zsh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										135
									
								
								dotfiles/aliases.zsh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,135 @@ | |||
| # A collection of useful aliases to make terminal life bliss | ||||
| # Unix | ||||
| alias ll="ls -la" | ||||
| alias ln="ln -v" | ||||
| alias mkdir="mkdir -p" | ||||
| alias e="$EDITOR" | ||||
| alias v="$VISUAL" | ||||
| alias tmux='tmux -u' | ||||
| 
 | ||||
| # checks if on linux or OSX for open command | ||||
| if [ "$(uname)" = "Linux" ]; then | ||||
|   alias open="xdg-open" | ||||
|   alias say='echo "$*" | espeak -s 120 2>/dev/null' | ||||
|   alias cpwd='pwd|tr -d "\n"|xclip' | ||||
| else | ||||
|   # OSX | ||||
|   alias cpwd='pwd|tr -d "\n"|pbcopy' | ||||
| fi | ||||
| 
 | ||||
| # top | ||||
| alias cpu='top -o CPU' | ||||
| alias mem='top -o MEM' | ||||
| 
 | ||||
| # Get your current public IP | ||||
| alias ip="curl icanhazip.com" | ||||
| 
 | ||||
| # list TODO/FIX lines from the current project | ||||
| alias todos="ag --nogroup '(TODO|FIX(ME)?):'" | ||||
| 
 | ||||
| # Bandwhich | ||||
| alias bandwhich="sudo ~/.cargo/bin/bandwhich" | ||||
| 
 | ||||
| # Python | ||||
| alias py='python3' | ||||
| alias py3='python3' | ||||
| alias python='python3' | ||||
| alias pip='pip3' | ||||
| 
 | ||||
| # Bundler | ||||
| alias b="bundle" | ||||
| alias bi="bundle install" | ||||
| alias be="bundle exec" | ||||
| alias bu="bundle update" | ||||
| 
 | ||||
| # Rails | ||||
| alias migrate="rake db:migrate db:rollback && rake db:migrate" | ||||
| alias s="rspec" | ||||
| alias rk="rake" | ||||
| alias rc="rails c" | ||||
| alias rs="rails s" | ||||
| alias gi="gem install" | ||||
| 
 | ||||
| # Rust | ||||
| alias rcc="rustc" | ||||
| 
 | ||||
| # Pretty print the path | ||||
| alias path='echo $PATH | tr -s ":" "\n"' | ||||
| 
 | ||||
| # CD Aliases | ||||
| alias sailex='cd ~/Data/Coding/Rust/Sailex' | ||||
| alias pweb='cd ~/Data/Coding/Projects/RoR/blakeridgway' | ||||
| # Scripts Aliases | ||||
| alias tmpc='source ~/.scripts/CTemplate.sh' | ||||
| alias project='source ~/.scripts/ProjectLayout.sh' | ||||
| alias mdtopdf='source ~/.scripts/MDtoPDF.sh' | ||||
| 
 | ||||
| # Tmux Aliases | ||||
| alias tdev='source ~/dotfiles/scripts/tmux-dev.sh' | ||||
| alias tls='tmux ls' | ||||
| 
 | ||||
| tnew() { | ||||
|     if [ "$1" != "" ] | ||||
|     then | ||||
| 			tmux new -s $1 | ||||
| 		else | ||||
| 			tmux | ||||
|     fi | ||||
| } | ||||
| 
 | ||||
| tatt() { | ||||
|     if [ "$1" != "" ] | ||||
|     then | ||||
| 			tmux attach -t $1 | ||||
| 		else | ||||
| 			tmux attach | ||||
|     fi | ||||
| } | ||||
| 
 | ||||
| # Configuration Reloads | ||||
| alias tmuxreload='source ~/.tmux.conf' | ||||
| alias zshreload='source ~/.zshrc' | ||||
| 
 | ||||
| # SSH | ||||
| alias sshwork='ssh winterjd@10.35.72.137' | ||||
| 
 | ||||
| # Logbook | ||||
| lbt() { | ||||
|   nvim -c ":VimwikiMakeDiaryNote"  | ||||
| } | ||||
| 
 | ||||
| lby() { | ||||
|   nvim -c ":VimwikiMakeYesterdayDiaryNote"  | ||||
| } | ||||
| 
 | ||||
| lbi() { | ||||
|   nvim -c ":VimwikiDiaryIndex" | ||||
| } | ||||
| 
 | ||||
| wiki() { | ||||
|   nvim -c ":VimwikiIndex" | ||||
| } | ||||
| 
 | ||||
| swiki() { | ||||
|   nvim -c ":VimwikiSearch $*" | ||||
| } | ||||
| 
 | ||||
| # nvim | ||||
| alias vim=nvim | ||||
| alias vi=nvim | ||||
| 
 | ||||
| alias vimrc='nvim ~/.vimrc' | ||||
| alias ealias='nvim ~/dotfiles/aliases.zsh' | ||||
| alias zshrc='nvim ~/.zshrc' | ||||
| 
 | ||||
| ycmcomp() { | ||||
|   cp ~/.dotfiles/templates/_ycm_extra_conf.py ./.ycm_extra_conf.py | ||||
| } | ||||
| 
 | ||||
| alias fv='vim $(fzf --height 40%)' | ||||
| 
 | ||||
| alias eclim='/Applications/Eclipse.app/Contents/Eclipse/eclimd  > /dev/null 2>&1 &' | ||||
| 
 | ||||
| # Docker-Compose Commands | ||||
| alias dce='docker-compose exec --user $(id -u):$(id -g)' | ||||
| alias dc='docker-compose' | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue