8
submitted 1 year ago* (last edited 1 year ago) by dragonfly4933@lemmy.dbzer0.com to c/linux@lemmy.ml

I am currently looking for a way to easily store and run commands, usually syncing files between two deeply nested directories whenever I want.

So far I found these projects:

Other solutions:

  • Bash history using ^+r
  • Bash aliases
  • Bash functions

What do you guys use?

you are viewing a single comment's thread
view the rest of the comments
[-] nlm@beehaw.org 1 points 1 year ago

Fish (or zsh with some addons) will give you tab completion based on previous commands, might be something of interest?

Here's some addon tips if you'd rather run zsh instead of fish:

https://gist.github.com/abhigenie92/a907cdf8a474aa6b569ebe89aeee560d

[-] WretchedRefrigerator@lemmy.zip 2 points 1 year ago* (last edited 1 year ago)

Fish shell is great, but the more I've used it, the more incompatibilities I've found:

  • Can't use subshells
  • Can't use bash syntax (it would help if bass would process all commands by default)
  • Can't use bash completions (there's a script to do that, but it makes start very slow)

Other than that, it just works by default (unlike zsh) and it works even better with an easy-to-install Tide

[-] nlm@beehaw.org 1 points 1 year ago

Yeah, it has its downsides. zsh with some addons is probably better overall. Or if you're at least aware of it's differences from bash and can work with that.

this post was submitted on 11 Jul 2023
8 points (90.0% liked)

Linux

47953 readers
1211 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS