Compile/run/test Java

This commit is contained in:
2019-05-08 15:21:57 -04:00
parent df2cf4044e
commit 9e70b84b62
8 changed files with 27 additions and 17 deletions

View File

@@ -2,3 +2,5 @@ sourceDir = "~/linux-config"
[data]
gui = true
ext_kb = true
# ext_kb = false

View File

@@ -22,6 +22,7 @@ set -U mfs_dir "/home/kevin/coding/mf-site"
{{ end }}
set -x PATH $PATH ~/scripts ~/scripts/colors ~/go/bin
set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
@@ -59,6 +60,9 @@ abbr ff "cd $fish_fxn_dir"
for fxn in (find $fish_fxn_dir -name '*.fish')
source $fxn
end
abbr ab "abbr"
abbr abe "abbr -e"
abbr rf "chezmoi apply && sync-shortcuts && source ~/.config/fish/key_abbr.fish > /dev/null"
abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
abbr xf "fish_config"
@@ -100,20 +104,11 @@ abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
# school [[[ #
# 309
# abbr r0t "./revert-e3-json restaurants"
# abbr r0s "./revert-e3-json reservations"
# 369
abbr grc "grep-c"
abbr grh "grep-headers"
abbr rgh "rg-headers"
abbr r6 "run-a4 h e"
# abbr r6 "run-a3 f d o"
# abbr r6g "run-a3 f d g"
# abbr r6s "run-a3 s c o"
# abbr g6 "source $fish_fxn_dir/369/a3/gdb-a3-break.fish && gdb-a3-break c c"
abbr jcp "java-compile-run Percolation"
# ]]] school #

View File

@@ -0,0 +1,6 @@
function java-compile-run
# javac -cp .:../algs4.jar $argv[1].java
# and java -cp .:../algs4.jar $argv[1]
javac $argv[1].java
and java $argv[1]
end

View File

@@ -0,0 +1,4 @@
function java-compile-test
javac -d out *.java
and java -jar /home/kevin/java/junit-platform-console-standalone-1.5.0-M1.jar --class-path "$CLASSPATH:out" --scan-class-path
end

View File

@@ -6,7 +6,7 @@ exec compton
exec imwheel
exec numlockx on
exec xbacklight -set 10
exec wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")"
exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
{{ end }}
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'

View File

@@ -3,4 +3,8 @@ audio.sync_bitrate_enumeration=4
ui.track_notifications_enabled=false
ui.show_friend_feed=false
audio.play_bitrate_enumeration=4
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
app.browser.zoom-level=300
{{ else }}
app.browser.zoom-level=75
{{ end }}