Seems like an appropriate place to share https://github.com/agarrharr/awesome-cli-apps
I’m a fan of ripgrep and lsd in particular.
Removed by mod
nano
The one downvote is from the Vim user
The one downvote is from the Vim user
deleted by creator
qalc
I’ve recently started using
tmux
when starting a new SSH session to try to build the habit.flatpak update
sudo !!
to rerun last command as sudo.history
can be paired with!5
to run the fifth command listed in history.Fifth as in fifth most recent command or fifth oldest?
I believe it’s the fifth oldest - I think
!-5
will get you the fifth impost recent, but I was shown that and haven’t put it into practice.The most common usecase I do is something like
history | grep docker
to find docker commands I’ve ran, then use!
followed by the number associated with the command I want to run in history.
@papertowels@lemmy.one I’ve been working in the bash shell since 1993 and did not know
sudo !!
was a thing. Good lord, I no longer have to press up, press crtl-left a bunch of times, then type sudo enter space anymore. And I can give it an easy-to-remember alias like ‘resu’ or ‘redo’! Ahahaha, this changes everything! Thank you!!We’re all learning tricks in this thread! Grateful for all y’all nerds.
I use “ping” every time I suspect my internet might be going a bit slow.
Try mtr . It’ll run kinda like a trace route but will show you where the delay is happening. Still relys in icmp not being blocked
‘mtr’ is not recognized as an internal or external command, operable program or batch file.
I assume I’m on the wrong OS.
compgen -back
to see all valid things you can type into a shell.In my ~/.bashprofile:
alias resource="source ~/.bashprofile"
In my terminal:
resource
Anything to save a few characters
exec $SHELL -l
omz reload
not going to say zsh is better than bash or fish, but oh-my-zsh does make it more attractive for some use-cases
omz is bloat and slows fown your shell a lot. Just do this: https://www.youtube.com/watch?v=21_WkzBErQk
And I’d recommend starship for a custom prompt, it’s really good: https://starship.rs
Edit: For other ZSH nice-to-haves: https://www.youtube.com/watch?v=eLEo4OQ-cuQ
I’ll have to give starship a try, seems like a cool way to handle customizing the prompt
as to the “omz is bloat and slows down your shell”:
- How slow? Because I’ve never noticed. Are we talking about waiting for 15 seconds when I should only have to wait for 1, or are we talking theory and the difference between 0.5 vs 0.08 seconds in benchmarks?
Because I’ve never been inconvenienced by the speed of my shell nor terminal emulator, despite having tried all kinds of setups. Turns out that “blazing fast” gpu accelerated terminal really didn’t make much of a difference on human timescales. Now I’m at the point where I appreciate the features over the performance.
- In reply to Brody’s point, I’m inclined to say “yes, and…?”
OMZ automates a lot. Sure, I could follow his way of manulaly sourcing dozens of individual shellscripts and making my own aliases and have a zshrc 1200 lines long… Or I could just let omz handle it.
Yes it’s mostly just a plugin manager, and…? Yes it automates a process I could do manually, and… ? Yes, it uses bindings that I didn’t personally write, and… ?
Fuck off with the clickbait “You’re living your life wrong, do this lifehack instead!!!” (and the lifehack is to reinvent the wheel) bullshit
Here’s a fun real lifehack: try things out for yourself, don’t just listen to and parrot other people’s opinions, don’t be afraid to go against the grain. Way more fun and fulfilling that way!
I have
cd && clear
aliased ashome
Lazy aliases unite!
Ctrl-r with https://github.com/atuinsh/atuin is amazing. Never forget a command you used ever again.
I trigger it with the up arrow.
sudo apt-get update && sudo apt-get upgrade
And technically
redshift -O 3000
all of the blue light filter programs try to align themselves with a user’s geographic location and time, but I don’t keep normal hours
topgrade
does this and and a lot moreChuck the -y in there for extra lazy mode
I would but much like somebody else’s recent post I have in the past nuked my install by blindly agreeing to some recommended software removals before. These days I like to double check what packages are being updated and replaced.
less
,watch
ls
ls -ltrc
Show most recently modified files.
Neofetch
Get on with the times, install fastfetch ;)