-
Just: I am using Just, a
Makefilealternative, to run thecli-boxwith the shortcutj.- With
Just, I can easily manage and execute various tasks and commands. - This is configured in file named
justfile
- With
-
Aliases: To access the
cli-box, I have created an alias and added it to my.zshrcfile.- The alias is as follows:
alias j="just -f $HOME/personal-projects/cli-box/justfile"
-
Transcrypt: To securely store all my dotfiles on GitHub, I am using Transcrypt.
Transcryptencrypts all the files in thehomedirectory when pushing updates to GitHub.homedirectory remains in plain-text format locally, and mounted as$HOMEdirectory inside thecli-boxcontainer, as configured in thejustfile.- This gives a central directory to store and persist all the configurations for various CLI tools, in both, inside the container and locally.
-
Mounting local directories: I am also mounting my local
$HOMEdirectory under/mntin thecli-boxcontainer.- This allows me to work with all the local files inside the container.
- This configuration is also set in the
justfile.
-
Tmux: I am using
tmuxto manage multiple terminal sessions within the container.- The
tmuxconfig is stored in thebuilddirectory, which is copied to the container during the build process. - This config is referred to when invoking the
tmuxcommand from thejustfile.
- The
check_updates.sh script checks for new versions of applications listed in a YAML configuration file, specifically looking for updates on GitHub. It then prints out a list of any applications that have a new version available.
-
Run the below command:
./cli-box update -
The script will then output a list of any applications with a new version available.
-
If there are any non-GitHub URLs listed in the YAML file, the script will also print a list of them at the end.