Prefer longer aliases for Google utils
pbcopy -> c pbpaste -> p While it's nice to expect pbcopy on both OSX and Linux, it's better to just alias c=pbcopy on OSX and assert on `c` and `p`, which are must shorter to type.
This commit is contained in:
		
							parent
							
								
									5dd3ebe314
								
							
						
					
					
						commit
						f9b7b86b9c
					
				
					 1 changed files with 15 additions and 11 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# These were haphazardly ported from wpcarro/nixify, so some may be broken.
 | 
					# These were haphazardly ported from wpcarro/nixify, so some may be broken.
 | 
				
			||||||
alias pbcopy="xclip -selection clipboard -i"
 | 
					alias c="xclip -selection clipboard -i"
 | 
				
			||||||
alias pbpaste="xclip -selection clipboard -o"
 | 
					alias p="xclip -selection clipboard -o"
 | 
				
			||||||
alias md="mkdir_cd"
 | 
					alias md="mkdir_cd"
 | 
				
			||||||
alias ls="exa"
 | 
					alias ls="exa"
 | 
				
			||||||
alias ll="exa -l"
 | 
					alias ll="exa -l"
 | 
				
			||||||
| 
						 | 
					@ -58,6 +58,8 @@ alias md=mkdir_cd
 | 
				
			||||||
alias j='fasd_cd -d' # to emulate autojump; my muscle memory is hardened here
 | 
					alias j='fasd_cd -d' # to emulate autojump; my muscle memory is hardened here
 | 
				
			||||||
alias vim=nvim # prefer neovim to vim
 | 
					alias vim=nvim # prefer neovim to vim
 | 
				
			||||||
alias links='find ~ -maxdepth 1 -type l -exec exa {} \;' # list all of the links in the home directory
 | 
					alias links='find ~ -maxdepth 1 -type l -exec exa {} \;' # list all of the links in the home directory
 | 
				
			||||||
 | 
					alias ra=ranger
 | 
				
			||||||
 | 
					alias chrome=google-chrome
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# couple the e* aliases to the <leader>e* kbds in vim
 | 
					# couple the e* aliases to the <leader>e* kbds in vim
 | 
				
			||||||
alias ev='vim ~/.config/nvim/init.vim'
 | 
					alias ev='vim ~/.config/nvim/init.vim'
 | 
				
			||||||
| 
						 | 
					@ -78,12 +80,14 @@ alias sx='sudo systemctl restart display-manager'
 | 
				
			||||||
alias si='i3-msg restart'
 | 
					alias si='i3-msg restart'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Google aliases
 | 
					# Google aliases
 | 
				
			||||||
# blaze:   b
 | 
					# blaze:    bz
 | 
				
			||||||
# borgcfg: bfg (NOTE: `bg` already exists as a shell built-in)
 | 
					# borgcfg:  bg (NOTE: `bg` already exists as a shell built-in)
 | 
				
			||||||
# piper:   p
 | 
					# piper:    pi
 | 
				
			||||||
alias b=blaze
 | 
					# pastebin: pb
 | 
				
			||||||
alias bb='blaze build'
 | 
					alias bzb='blaze build'
 | 
				
			||||||
alias bfg='borgcfg'
 | 
					alias bg='borgcfg'
 | 
				
			||||||
alias pl='p4 listclients'
 | 
					alias pil='p4 listclients'
 | 
				
			||||||
alias prm='p4 citc -d'
 | 
					alias pirm='p4 citc -d'
 | 
				
			||||||
alias ra=ranger
 | 
					alias pb=/google/src/head/depot/eng/tools/pastebin
 | 
				
			||||||
 | 
					alias pbc='p | pb --private --title $(date +${DATE_FMT})| tee >(c && chrome $(p))' # create a private gPaste from your clipboard's content; open the result in a browser
 | 
				
			||||||
 | 
					alias pbls='$BROWSER https://paste.googleplex.com/$(whoami)'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue