Browse Source

Compile/run/test Java

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
9e70b84b62
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 2
      dot_config/chezmoi/chezmoi-template.toml.tmpl
  2. 15
      dot_config/fish/config.fish.tmpl
  3. 6
      dot_config/fish/functions/java-compile-run.fish
  4. 4
      dot_config/fish/functions/java-compile-test.fish
  5. 2
      dot_config/i3/config.tmpl
  6. 4
      dot_config/spotify/Users/polarbier-user/prefs.tmpl
  7. 3
      key_aliases.tmpl
  8. 8
      key_dirs.tmpl

2
dot_config/chezmoi/chezmoi-template.toml.tmpl

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

15
dot_config/fish/config.fish.tmpl

@ -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 #

6
dot_config/fish/functions/java-compile-run.fish

@ -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

4
dot_config/fish/functions/java-compile-test.fish

@ -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

2
dot_config/i3/config.tmpl

@ -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'

4
dot_config/spotify/Users/polarbier-user/prefs.tmpl

@ -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 }}

3
key_aliases.tmpl

@ -475,4 +475,7 @@ gpsh "git push heroku"
# ]]] 309 #
jc "javac *.java"
j "java"
# ]]] school #

8
key_dirs.tmpl

@ -52,24 +52,20 @@ wo ~/Documents/workout-logs/11
# sch [[[ #
sc ~/school
lt ~/school/latex-notes
# 309 [[[ #
sc ~/school
0c ~/school/309-proj/css
0d ~/school/309
0j ~/school/309-proj/public/js
0l ~/school/309/l
0p ~/school/309-proj
0m ~/school/309-proj/mongo
e4 ~/school/309/e4
# ]]] 309 #
6 ~/school/369
6l ~/school/369/notes/lectures
hp ~/school/hps
al1 ~/school/algorithms/w1-union-find
# ]]] sch #
Loading…
Cancel
Save