about summary refs log tree commit diff
path: root/configs/shared/zsh/aliases.zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
commitf7b3e0a7a92903307ef1f4c66992721be6e01e08 (patch)
tree11f1959ee6dc34d2f8b20e6425cbb85700b55c63 /configs/shared/zsh/aliases.zsh
parentbf33edaa6efbf3572d9335bb07b530af249de0d2 (diff)
Drop OSX support; support desktop, laptop, cloudtop
Dropping support for OSX. Moving forward these dotfiles will depend on Linux
systems. Furthermore, since I'm support a ~/bin, the machines that consume these
dotfiles depend on i386 architectures. Linux and i386 are two dependencies that
I'm okay with since the leverage this assumption provides, makes their existence
tolerable.

There is some Google leakage herein, which includes aliases, functions, and
mentions of cloudtop. For now, this is okay. I may break the Google specific
code into its own repository, but for now, this is less maintenance.

This also introduces a ~/.profile instead of erroneously defining environment
variables in my zshrc file, which was unadvised.

This is a large commit and also introduces new aliases, variables, functions
that I accumulated over the past week or so while migrating away from OSX and
onto my new setup. Hopefully in the future I'll be more precise with my commits.
Diffstat (limited to 'configs/shared/zsh/aliases.zsh')
-rw-r--r--configs/shared/zsh/aliases.zsh36
1 files changed, 31 insertions, 5 deletions
diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh
index ad00763dad59..4322c861725a 100644
--- a/configs/shared/zsh/aliases.zsh
+++ b/configs/shared/zsh/aliases.zsh
@@ -1,11 +1,21 @@
 # Applications
-# dired:  di
-# docker: dk
+#
+# Supported qualifiers:
+#   hidden:      h
+#   ignore-case: i
+#
+# Supported verbs:
+#   source:  s
+#   install: i
+#   test:    t
+#   build:   b
+#   list:    ls
 
 # Misc
 alias c="xclip -selection clipboard -i"
 alias p="xclip -selection clipboard -o"
-alias md="mkdir_cd"
+alias mdd="mkdir_cd"
+alias mdp='mkdir --parents'
 alias ls="exa"
 alias ll="exa -l"
 alias la="exa -la"
@@ -21,14 +31,21 @@ alias btctl=bluetoothctl
 alias rg='rg --ignore-case'
 alias rgh='rg --hidden' # By default, rg skips hidden files
 alias fdh='fd --hidden' # By default, rg skips hidden files
+alias define=sdcv # uses stardict to lookup a word
 
 # Gnome
 alias na=nautilus # Gnome's graphical file browser. Useful to click and dragging files into emails
 
+# Tmux
+alias tls='tmux list-sessions'
+
 # Chrome
 alias cssh='chrome --app-id=pnhechapfaindjhompbnflcldabbghjo' # Secure Shell
 alias crd='chrome --app-id=gbchcmhmhahfdphkhkmpfmihenigjmpp'  # Chrome Remote Desktop
 
+# Dropbox
+alias drst='dropbox.py status'
+
 # Docker
 alias dk="docker"
 alias dkps="docker ps"
@@ -90,7 +107,7 @@ alias hgco='hg update'
 alias sb="stack build"
 alias se="stack exec --"
 alias sc="stack clean"
-alias st="stack test"
+# alias st="stack test" # blocks suckless-terminal
 alias haddocks='open "$(stack path --local-doc-root)/index.html"'
 
 # Kubernetes
@@ -107,6 +124,12 @@ alias nq="nix_introspect"
 alias nsh="nix-shell"
 alias nshp="nix-shell --pure"
 alias nr="nix repl"
+alias ni='nix-env --install'
+alias nrm='nix-env --uninstall'
+alias nls='nix-env --query'
+
+# Aptitude (apt)
+alias apti='sudo apt-get install'
 
 # couple the e* aliases to the <leader>e* kbds in vim
 alias ev='e ~/.config/nvim/init.vim'
@@ -117,6 +140,7 @@ alias ef='e ~/functions.zsh'
 alias el='e ~/variables.zsh'
 alias ex='e ~/.Xresources'
 alias ei='e ~/.config/i3/config'
+alias em='e ~/.tmux.conf'
 
 # couple the s* aliases to the <leader>s* kbds in vim
 alias sz='source ~/.zshrc'
@@ -125,6 +149,7 @@ alias sf='source ~/functions.zsh'
 alias sl='source ~/variables.zsh'
 alias sx='xrdb ~/.Xresources'
 alias si='i3-msg restart'
+alias sm='tmux source-file ~/.tmux.conf'
 
 # Google aliases
 # blaze:      bz
@@ -138,5 +163,6 @@ alias br='borgcfg'
 alias pils='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 pbc='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 pbcp='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)'