about summary refs log tree commit diff
path: root/configs/shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-29T17·19+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-29T17·19+0000
commitcc3aecb1e3f1d3490c195ab607ccac527921ef71 (patch)
tree97bfbc3993039c0abf4ec5ed13feaf006ccacbb8 /configs/shared
parent54c13a88489bbc40395811a3456f51743c56bcd2 (diff)
Support Java alias for jshell
The `jshell` alias currently imports libs like guava and jOOL into the `jshell`,
which is nice for experimenting.

Experimenting with keeping some helpful `.jars` in `~/programming/jars`. This
may be a bad idea, and there may exist a more idiomatic way to do this instead
of wrapping `jshell` in an alias, but for now, I need to move on.

Also documents some abbreviations for applications. `jv` will be necessary so
that I don't conflict with `j` or `js` for javascript. Eventually I'll need to
be more organized to avoid naming collisions, but this is okay for now.
Diffstat (limited to 'configs/shared')
-rw-r--r--configs/shared/zsh/aliases.zsh24
1 files changed, 19 insertions, 5 deletions
diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh
index 5ff5558813bd..a6d05a78469c 100644
--- a/configs/shared/zsh/aliases.zsh
+++ b/configs/shared/zsh/aliases.zsh
@@ -1,4 +1,18 @@
 # Applications
+#   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
 #
 # Supported qualifiers:
 #   hidden:      h
@@ -10,6 +24,7 @@
 #   test:    t
 #   build:   b
 #   list:    ls
+#   shell:   sh
 
 # Misc
 alias c="xclip -selection clipboard -i"
@@ -58,6 +73,10 @@ alias dkrit="docker run -it"
 alias dkrd="docker run -d"
 alias dki="docker images"
 
+# Java
+alias jvsh='CLASSPATH=$(fd \\.jar$ ~pro/jars | tr \\n :) jshell'
+
+
 # Elixir
 alias m="mix"
 alias mc="mix compile"
@@ -157,11 +176,6 @@ alias si='i3-msg restart'
 alias sm='tmux source-file ~/.tmux.conf'
 
 # Google aliases
-# blaze:      bz
-# borgcfg:    br
-# piper:      pi
-# pastebin:   pb
-# codesearch: cs
 alias bzb='blaze build'
 alias bzt='blaze test --test_output=all'
 alias br='borgcfg'