about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·21+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·21+0000
commitf9b7b86b9c1b35f0c51d27f6408a6be8b4f99326 (patch)
tree86482352a95655c109fa1bb0f10500ff1aec82dd
parent5dd3ebe3148b584c1fc012dd419cbe83ce5ad745 (diff)
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.
-rw-r--r--configs/shared/zsh/aliases.zsh26
1 files changed, 15 insertions, 11 deletions
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 <leader>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)'