- Format all shell scripts using [shfmt]
(https://github.com/mvdan/sh).
Options used:
* `-bn`: binary ops like && and | may start a line
* `-sr`: redirect operators will be followed by a space
* `-ci`: indent switch cases
* `-i 4`: indent 4 spaces
* `-s`: simplify the code
* `-p`: parse for posix compliance
- Add Github action to lint changes to scripts and enforce formatting
going forward
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
A custom filename and directory can be specified with startx command,
which in this case is $XINITRC variable that indicates
$XDG_CONFIG_HOME/x11/xinitrc
* Compatibility for FreeBSD's paste(1)
According to FreeBSD's
[paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports),
the extra `-` is needed (tested by myself).
This obviously works for Linux as well, tested on Void Linux at least.
> Create a colon-separated list of directories named bin,
> suitable for use in the PATH environment variable:
`find / -name bin -type d | paste -s -d : -`
* Compatibility for FreeBSD's paste(1)
According to FreeBSD's
[paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports),
the extra `-` is needed (tested by myself).
This obviously works for Linux as well, tested on Void Linux at least.
> Create a colon-separated list of directories named bin,
> suitable for use in the PATH environment variable:
`find / -name bin -type d | paste -s -d : -`