dotfiles/sh
Marty Oehme 7eeeb9e85d
sh: Add clear and rerun function
Added simple function to clear the screen but additionally re-run the
last executed command.

Mirroring my clear screen alias `cl`, this one is executed with `cll`
(clear-and-last) currently.

It comes in useful for me every now and again because I sometimes just
need a quick way to get rid of 'clutter' on my terminal (e.g. running
multiple rg invocations after each other, or diffs, or anything that
spews a bunch of stuff on screen and I want to find specific things
afterwards).
I am very used to running `cl` and then the second to last history item.
This makes those additional keystrokes unnecessary.
2024-06-05 12:10:26 +02:00
..
.config/sh sh: Add clear and rerun function 2024-06-05 12:10:26 +02:00
.local/bin sh: Add default open script 2023-12-04 08:26:59 +01:00
README.md sh: Add internet-check base script 2021-09-24 11:16:29 +02:00

sh

The bare minimum terminal configuration for a working system. Contains:

  • an XDG compliant home directory setup
  • several basic environment variables
  • simple aliases
  • an optional fzf default setup
  • X autostart

While other modules are largely optional, this module is the only one strictly necessary for the system to really work at all.

Additionally contains two scripts on which some other modules build:

  • a simple script to detect if applications exist (and optionally warn the user if they don't)
  • and a script to check if internet connectivity exists