10 Commits

Author SHA1 Message Date
vlad doster
eed099b954 Cohesive shell script formatting
- 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>
2021-03-15 06:16:20 -05:00
Luke Smith
284b1078cb
minor tweaks, electrum and mbsync to ~/.config 2021-03-07 15:44:52 -05:00
Luke Smith
deecc42707
startx alias 2021-03-07 15:40:43 -05:00
memreyagci
4bf6941b87 Deleted the .xinitrc link at $HOME for even a cleaner home directory.
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
2021-02-21 16:10:28 +01:00
Luke Smith
3249d6b100
clean up 2021-02-07 17:30:49 -05:00
ZaxonXP
17f15d91ee
Use find instead du for more efficient execution. (#880)
Find is faster and it is only one command. The last `:` is removed by the parameter expansion (works in both Bash and Zsh).
2021-01-13 17:51:40 -05:00
anntnzrb
7c96bd081a
Compatibility for FreeBSD's paste(1) (#853)
* 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 : -`
2020-12-01 18:21:03 -05:00
Luke Smith
ae2f08ec69
minor updates 2020-11-19 09:21:04 -05:00
Luke Smith
8983f6aeb4
files moved to new correct names 2020-11-19 08:37:50 -05:00
Luke Smith
cba0fcc03d
old stuff removed
many files renamed, possible breakage
2020-11-16 18:06:41 -05:00