This way better solution using the `(A)` flag was given to me in the
zsh-users mailing list back in 2022 but I forgot to apply it.
See zshexpn(1):
> Convert the substitution into an array expression, even if it
> otherwise would be scalar.
Thanks Mikael!
Link: https://www.zsh.org/mla/users/2022/msg00668.html
I found this in feh's .desktop file and liked the idea:
With `--start-at` feh will load all files from the directory of the
given file and start the filelist at the given one.
This of course breaks easily if I want to pass more flags before the
file argument, but is easily fixed by first specifying the argument to
`--start-at` and continuing with the rest. I also rarely use any flag
besides the one already defined in the alias.
It's really annoying if it tries to correct me when I create a new
directory that is named similar to an existing one.
Group together aliases that add a precommand modifier.
Since `mkdir` receives the `-p` flag already via `add_flags` the `md`
alias can directly alias to `mkdir` instead.
I often get annoyed when I try to copy the command I typed but the
timestamp is also copied (e.g. with tmux line selection). Move the time
segment to the very right of the first line of RPROMPT which empties the
second line completely.
In the flat/non-graph view merge commits are a bit distracting. Still
unsure if I will forget about this and one day wonder why I don't see
merge commits.
Replace custom awk solution with uniq, by first flipping filename and
filesize so that uniq's `-f` flag can be utilized (as there is no
inverse of it, i.e. "only look at field n").
This increases performance by quite a bit.
This reverts commit a205a7c5ce ("zsh:opts: Disable CDABLE_VARS").
The main reason why the option annoyed me was primarily because I had
stupid named dirs to begin with. Remove children of HOME, since I get
there fast anyways.
This reverts commit 226f09b046.
I don't want to have relative links all the time.
TODO: If target is a relative path, make the link relative too
TODO: Support --relative flag
This makes it possible to diff command chains. For example:
diffcmds git format-patch -1 --stdout HEAD~ '|' \
grep '^%%' '|' \
cut -c2- \
-- - +
to see if a commit only reordered lines without modifying them.
I am not happy with this solution and would prefer a different form of
escaping (e.g. with %).