11

I’m moving my posts from Reddit to Lemmy before delete them.

This post is from 2020-09-03.

you are viewing a single comment's thread
view the rest of the comments
[-] Thaurin@lemmy.world 2 points 1 year ago

Try fish with the tide plugin and the fzf plugin. I can never go back to anything else.

[-] samsy@feddit.de 0 points 1 year ago

I love fish, only it annoys me, if I want to run a bash script.

[-] Thaurin@lemmy.world 1 points 1 year ago

Why is that? You can still use bash to interpret your bash scripts. Where does it annoy you?

[-] samsy@feddit.de 0 points 1 year ago

I have to switch to bash first, and wonder days later, why I can't find it (obviously) in my fish history.

[-] Thaurin@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

I mean, doesn’t the script have a hash bang pointing to the bash interpreter?

#!/usr/bin/bash

Or you can just run it like:

bash script.sh
[-] Zucca@sopuli.xyz 1 points 1 year ago

#!/usr/bin/env bash for compability. 😉

For example on my system bash is in /bin.

[-] Thaurin@lemmy.world 1 points 1 year ago

Right, of course. I already do that with Python scripts, but with bash old habits die hard, I guess. :)

[-] samsy@feddit.de 1 points 1 year ago

I know, well the lazyness is strong in me. Copy and paste.

[-] Thaurin@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Huh. It’s the first thing I write in any script. It actually saves me time. What annoys me is a script that doesn’t have a hash bang. :)

this post was submitted on 16 Jul 2023
11 points (92.3% liked)

linuxmasterrace

2166 readers
1 users here now

A community for Linux enthusiasts.

May your htop stats be low and your beard grow long

Welcome to !linuxmasterrace@feddit.de former r/linuxmasterrace members and existing Lemmyverse citizens: Feel free to join the newly created !linuxmasterrace@feddit.de community.

Let’s make the full transition to the decentralized Fediverse!

founded 1 year ago
MODERATORS