From cc3aecb1e3f1d3490c195ab607ccac527921ef71 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 29 Mar 2019 17:19:29 +0000 Subject: [PATCH] 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. --- configs/shared/zsh/aliases.zsh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh index 5ff555881..a6d05a784 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'