gamma

joined 2 years ago
MODERATOR OF
[–] gamma 1 points 8 months ago* (last edited 8 months ago)

Yeah, I'd write this as a single update script with options to update vimplugins or update pkg or update all.

I see that you want it to be a function so you can get the chdir as a side effect, but mixing that with updating doesn't make sense to me.

[–] gamma 13 points 8 months ago

When in doubt, ~/.zshrc. It's the right choice 99% of the time. Otherwise, there's a chance you fuck up scripts you've installed which assume no shell options have been changed in non-interactive contexts.

[–] gamma 2 points 8 months ago (4 children)

What kind of functions do you write which you share between your scripts? Generally if I'm wanting to reuse a non-trivial function, I extend the functionality of the first script instead.

[–] gamma 11 points 8 months ago* (last edited 8 months ago) (2 children)

Select the color which matches the steps before filenames ((non-)login and (non-)interactive), then follow that arrow the rest of the way. There's more colors in Bash because Bash makes a distinction between remote and local shells.

Another way to look at the same data for Zsh (note: $ZDOTDIR will be used instead of $HOME if it's defined at any step along the way):

File neither interactive login both
/etc/zshenv x x x x
${ZDOTDIR:-$HOME}/.zshenv x x x x
${ZDOTDIR:-$HOME}/.zprofile x x
${ZDOTDIR:-$HOME}/.zshrc x x
${ZDOTDIR:-$HOME}/.zlogin x x
${ZDOTDIR:-$HOME}/.zlogout x x

One confusion on the Bash side of the diagram is that you see branching paths into ~/.profile, ~/.bash_profile and ~/.bash_login. Bash will use for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and execute only the first one that exists and is readable.

[–] gamma 14 points 8 months ago* (last edited 8 months ago) (1 children)

Optional crash reporting was merged. Most of the backlash in the PR is about the significant dependencies (Google's BreakPad) which were pulled in with it.

However, by default Audacity isn't built with it, you need to specify a CMake with the URL to send data to. No distros that I know of enable reporting.

[–] gamma 2 points 9 months ago

Just make sure you read the news (restart sshd)

[–] gamma 4 points 9 months ago

Judging purely on the dependencies I see in pacman, nsxiv depends on imlib2, which pulls in a lot of libraries, while imv links to a subset of those libraries directly.

[–] gamma 9 points 9 months ago

CSS is turing conplete.

[–] gamma 1 points 9 months ago

What about adding the flags last?

rm deletethisrepo -rf
[–] gamma 1 points 9 months ago

You could still NAT between v6's though.

[–] gamma 15 points 9 months ago* (last edited 9 months ago)

Like a normal horsey, but the square it leaves behind remains on fire, destroying the next piece to land on it.

Only the most recent square it was on remains on fire.

[–] gamma 4 points 9 months ago

IMO the NUL-delimited options are by far the biggest win for shell scripting. $' ' will be the most commonly used addition, but "$(printf '...')" was always an option before. You don't really have an alternative read -d ''.

 

Feedback is still welcome, either here or as Merge Requests to my Gitlab Pages repo.

view more: ‹ prev next ›