bash (Ubuntu 22.04)

bash (Ubuntu 22.04)
Photo by Jay Ruzesky / Unsplash
$ mkdir '~/Default Folder' 
$ cd '~/Default Folder'
# apt update
# apt ugrade
# apt install vim
$ vim burzltag

i

------------- (Schnipp)
#!/bin/bash
export PAGER='/usr/bin/less -Xr'
cd '~/Default Folder'
java -jar CalculateBirthdays-1.0-SNAPSHOT.jar print |mdless
------------ (Schnapp)

ESC
ZZ

$ chmod +x '~/Default Folder/burzltag'
# apt install openjdk-17-jre-headless
# apt install ruby
# gem install mdless
$ cd ~
$ mkdir bin
$ vim bin/calculate_birthdays

i

------------ (Schnipp)
#!/bin/bash

cd '~/Default Folder'
java -jar CalculateBirthdays-1.0-SNAPSHOT.jar "$@"
------------- (Schnapp)

ESC
ZZ

$ chmod +x bin/calculate_birthdays
$ echo "
#burzltag
cd '~/Default Folder'
'./burzltag'
"export PATH=$PATH:~/Default\ Folder" >> .bashrc
$ cp '~/Downloads/artifacts/target/CalculateBirthdays-1.0-SNAPSHOT.jar' '~/Default Folder/'
  • restart Terminal app