3 ms·
My pile of aliases and custom functions is hilariously large now, making it cumbersome to find where exactly I defined one. Making standalone scripts would mak
by inanutshellus 2y ago
My pile of aliases and custom functions is hilariously large now, making it cumbersome to find where exactly I defined one.
Making standalone scripts would make that trivial, so it's tempting to take him up on his idea.
That said, his list of benefits of aliases clearly makes a strong case for using them over scripts.
As he said, YMMV.
- Honk4Stonks 2y agoI just create ~/rc_files.d/{functions,aliases,profiles,etc} which automatically get sourced with a `for` loop. This makes it easier to keep things organised.
- inanutshellus 2y agoyes, I've done basically this, but... gee is `foo` an alias or... did I upgrade it to a function? and maybe it's in neither my `functions` nor `aliases` file. Maybe it's in my `scm` file, or ... Oh! I remember, it's in my `prompt` file because I add SCM info to my prompt and this function injects the segment of the SCM url I'm after into my PS1 variable...
- latexr 2y ago> gee is `foo` an alias or... did I upgrade it to a function? which foo On Zsh that tells you if it’s an alias, a function, or a script.