From f9b7b86b9c1b35f0c51d27f6408a6be8b4f99326 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 5 Mar 2019 18:21:41 +0000 Subject: 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. --- configs/shared/zsh/aliases.zsh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'configs/shared') diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh index 64729b5cbd98..578c4e884aad 100644 --- a/configs/shared/zsh/aliases.zsh +++ b/configs/shared/zsh/aliases.zsh @@ -1,6 +1,6 @@ # These were haphazardly ported from wpcarro/nixify, so some may be broken. -alias pbcopy="xclip -selection clipboard -i" -alias pbpaste="xclip -selection clipboard -o" +alias c="xclip -selection clipboard -i" +alias p="xclip -selection clipboard -o" alias md="mkdir_cd" alias ls="exa" 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 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 ra=ranger +alias chrome=google-chrome # couple the e* aliases to the e* kbds in vim alias ev='vim ~/.config/nvim/init.vim' @@ -78,12 +80,14 @@ alias sx='sudo systemctl restart display-manager' alias si='i3-msg restart' # Google aliases -# blaze: b -# borgcfg: bfg (NOTE: `bg` already exists as a shell built-in) -# piper: p -alias b=blaze -alias bb='blaze build' -alias bfg='borgcfg' -alias pl='p4 listclients' -alias prm='p4 citc -d' -alias ra=ranger +# blaze: bz +# borgcfg: bg (NOTE: `bg` already exists as a shell built-in) +# piper: pi +# pastebin: pb +alias bzb='blaze build' +alias bg='borgcfg' +alias pil='p4 listclients' +alias pirm='p4 citc -d' +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)' -- cgit 1.4.1