2019-03-08 19:17:41 +01:00
# Applications
2019-03-29 18:19:29 +01:00
# java: jv
# tmux: t
# $EDITOR: e
# vim: v
# GnuPG: gpg
# blaze: bz
# borgcfg: br
# piper: pi
# pastebin: pb
# codesearch: cs
# git: g
# mercurial: hg
# aptitude: apt
# chrome: c
2019-04-02 22:29:46 +02:00
# elixir: ex
# haskell: hk
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.
2019-03-18 15:14:26 +01:00
#
# Supported qualifiers:
# hidden: h
# ignore-case: i
#
# Supported verbs:
# source: s
# install: i
# test: t
# build: b
# list: ls
2019-03-29 18:19:29 +01:00
# shell: sh
2019-03-08 19:17:41 +01:00
# Misc
2019-03-05 19:21:41 +01:00
alias c = "xclip -selection clipboard -i"
alias p = "xclip -selection clipboard -o"
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.
2019-03-18 15:14:26 +01:00
alias mdd = "mkdir_cd"
alias mdp = 'mkdir --parents'
2019-02-27 18:47:56 +01:00
alias ls = "exa"
alias ll = "exa -l"
alias la = "exa -la"
alias lorem = "echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
2019-03-21 14:57:15 +01:00
alias e = "emacsclient --no-wait --create-frame"
2019-03-21 14:59:09 +01:00
alias cat = "bat --theme=TwoDark"
2019-03-08 19:17:41 +01:00
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 di = dired
alias chrome = google-chrome
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
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.
2019-03-18 15:14:26 +01:00
alias define = sdcv # uses stardict to lookup a word
2019-04-03 18:22:09 +02:00
alias intellij = 'nohup /opt/intellij-ce-stable/bin/idea.sh >/dev/null 2>&1 &'
2019-04-15 14:25:14 +02:00
alias tpr = 'tput reset'
2019-03-08 19:17:41 +01:00
# Gnome
alias na = nautilus # Gnome's graphical file browser. Useful to click and dragging files into emails
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.
2019-03-18 15:14:26 +01:00
# Tmux
alias tls = 'tmux list-sessions'
2019-03-18 21:54:27 +01:00
alias ta = 'tmux attach' # NOTE: `t` works for this as well
alias td = 'tmux detach' # prefer using the KBD for this (i.e. <leader>d)
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.
2019-03-18 15:14:26 +01:00
2019-03-08 19:17:41 +01:00
# Chrome
alias cssh = 'chrome --app-id=pnhechapfaindjhompbnflcldabbghjo' # Secure Shell
alias crd = 'chrome --app-id=gbchcmhmhahfdphkhkmpfmihenigjmpp' # Chrome Remote Desktop
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.
2019-03-18 15:14:26 +01:00
# Dropbox
alias drst = 'dropbox.py status'
2019-03-08 19:17:41 +01:00
# Docker
alias dk = "docker"
alias dkps = "docker ps"
alias dkpsa = "docker ps -a"
alias dkrm = "docker rm"
alias dkrmi = "docker rmi"
alias dkrd = "docker run -d"
alias dki = "docker images"
2019-03-29 18:19:29 +01:00
# Java
alias jvsh = 'CLASSPATH=$(fd \\.jar$ ~pro/jars | tr \\n :) jshell'
2019-03-08 19:17:41 +01:00
# Elixir
2019-02-27 18:47:56 +01:00
alias m = "mix"
alias mc = "mix compile"
alias mcf = "mix compile --force"
alias ism = "iex -S mix"
alias tism = "MIX_ENV=test iex -S mix"
alias mdg = "mix deps.get"
alias mdu = "mix deps.update"
alias mdup = "mix docker.up"
2019-05-13 17:37:47 +02:00
alias repl_ex = 'dkish elixir iex' # depends on the docker aliases
# Clojure
alias repl_clj = 'dkish clojure lein repl'
2019-03-08 19:17:41 +01:00
2019-03-11 19:00:03 +01:00
# GPG
alias gpged = 'gpg --edit-key wpcarro@gmail.com'
alias gpge = 'gpg --encrypt'
alias gpgd = 'gpg --decrypt'
alias gpgls = 'gpg --list-keys'
2019-03-08 19:17:41 +01:00
# Git
2019-02-27 18:47:56 +01:00
alias g = "git"
2019-03-04 18:55:16 +01:00
alias glp = 'git log --graph --pretty=format:"%Cred%h%Creset -%Cblue %an %Creset - %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset" --abbrev-commit --date=relative'
2019-02-27 18:47:56 +01:00
alias git = "hub"
alias gprom = "git pull --rebase origin master"
2019-03-27 19:22:59 +01:00
alias gca = "git commit --amend"
2019-02-27 18:47:56 +01:00
alias gcan = "git commit --amend --no-edit"
alias gpf = "git push --force"
alias gpff = "git push --force --no-verify"
alias gds = "git diff --staged"
alias gfx = "git commit --fixup"
alias gsh = "git show"
alias gbm = "git branch --merged"
alias gwip = "git add . && git commit -m wip"
alias gpr = "git pull-request"
2019-03-08 19:17:41 +01:00
# Mercurial
# The attempt here is to map my well-known, existing `git` aliases to their
# Mercurial counterparts. Some may map 1:1, others may be like putting a square
# peg into a round hole. I will try and use my best judgement in these cases
# while erring on the side of unifying the two APIs.
alias hgst = 'hg status'
alias hglp = 'hg xl'
alias hgp = 'hg uploadchain' # this is like `git push`
alias hga = 'hg add'
alias hgc = 'hg commit'
alias hgcan = 'hg amend' # like `git commit --amend --no-edit'
alias hgpr = 'hg mail -r . -m' # this may be similar to `hub pull-request`
alias hgd = 'hg diff'
alias hgsh = 'hg export'
alias hgco = 'hg update'
2019-03-20 16:10:42 +01:00
alias hgls = 'hg citc --list' # should have different output from `pils`
2019-03-08 19:17:41 +01:00
# Haskell
2019-02-27 18:47:56 +01:00
alias sb = "stack build"
alias se = "stack exec --"
alias sc = "stack clean"
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.
2019-03-18 15:14:26 +01:00
# alias st="stack test" # blocks suckless-terminal
2019-03-08 19:17:41 +01:00
alias haddocks = 'open "$(stack path --local-doc-root)/index.html"'
2019-05-13 17:37:47 +02:00
alias repl_hk = 'dkish haskell ghci'
2019-03-08 19:17:41 +01:00
# Kubernetes
2019-02-27 18:47:56 +01:00
alias kc = "kubectl"
alias kpods = "kubectl get pods"
alias knodes = "kubectl get nodes"
alias kdeploys = "kubectl get deployments"
alias kdns = "kubectl get ing"
alias kedit = "kubectl edit deployments "
alias kswitch = "gcloud container clusters get-credentials "
2019-03-08 19:17:41 +01:00
# Nix
2019-02-27 18:47:56 +01:00
alias nq = "nix_introspect"
alias nsh = "nix-shell"
alias nshp = "nix-shell --pure"
alias nr = "nix repl"
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.
2019-03-18 15:14:26 +01:00
alias ni = 'nix-env --install'
alias nrm = 'nix-env --uninstall'
alias nls = 'nix-env --query'
# Aptitude (apt)
alias apti = 'sudo apt-get install'
2019-03-23 17:36:34 +01:00
alias aptrm = 'sudo apt remove'
Support aliases for common config files, misc
Since I'm constantly editing vim, emacs, i3, zshrc, functions, aliases,
etc., I should support variables, aliases, and KBDs to make editing,
sourcing these files much more efficient.
2019-03-04 18:56:03 +01:00
# couple the e* aliases to the <leader>e* kbds in vim
2019-03-06 17:59:45 +01:00
alias ev = 'e ~/.config/nvim/init.vim'
alias ee = 'e ~/.emacs.d/init.el'
alias ez = 'e ~/.zshrc'
alias ea = 'e ~/aliases.zsh'
alias ef = 'e ~/functions.zsh'
alias el = 'e ~/variables.zsh'
alias ex = 'e ~/.Xresources'
2019-03-23 17:31:59 +01:00
alias ei = 'e ~/.config/i3/config.shared'
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.
2019-03-18 15:14:26 +01:00
alias em = 'e ~/.tmux.conf'
Support aliases for common config files, misc
Since I'm constantly editing vim, emacs, i3, zshrc, functions, aliases,
etc., I should support variables, aliases, and KBDs to make editing,
sourcing these files much more efficient.
2019-03-04 18:56:03 +01:00
# couple the s* aliases to the <leader>s* kbds in vim
alias sz = 'source ~/.zshrc'
alias sa = 'source ~/aliases.zsh'
alias sf = 'source ~/functions.zsh'
alias sl = 'source ~/variables.zsh'
2019-03-06 17:59:45 +01:00
alias sx = 'xrdb ~/.Xresources'
Support aliases for common config files, misc
Since I'm constantly editing vim, emacs, i3, zshrc, functions, aliases,
etc., I should support variables, aliases, and KBDs to make editing,
sourcing these files much more efficient.
2019-03-04 18:56:03 +01:00
alias si = 'i3-msg restart'
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.
2019-03-18 15:14:26 +01:00
alias sm = 'tmux source-file ~/.tmux.conf'
Support aliases for common config files, misc
Since I'm constantly editing vim, emacs, i3, zshrc, functions, aliases,
etc., I should support variables, aliases, and KBDs to make editing,
sourcing these files much more efficient.
2019-03-04 18:56:03 +01:00
# Google aliases
2019-03-05 19:21:41 +01:00
alias bzb = 'blaze build'
2019-03-08 19:17:41 +01:00
alias bzt = 'blaze test --test_output=all'
alias br = 'borgcfg'
2019-03-07 17:49:11 +01:00
alias pils = 'p4 listclients'
2019-03-05 19:21:41 +01:00
alias pirm = 'p4 citc -d'
alias pb = /google/src/head/depot/eng/tools/pastebin
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.
2019-03-18 15:14:26 +01:00
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
2019-03-05 19:21:41 +01:00
alias pbls = '$BROWSER https://paste.googleplex.com/$(whoami)'
2019-03-27 19:24:00 +01:00
alias flagpick = /google/data/ro/users/sk/skaushik/www/public-tools/flagpick