this post was submitted on 17 Oct 2023
1090 points (98.8% liked)

linuxmemes

20408 readers
961 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 19 points 11 months ago* (last edited 11 months ago) (1 children)

alias ls = "cat ~/.bash_history | grep ls"

Edit: Even better: alias ls = "$( cat ~/.bash_history | grep -x ls | tail -1 )"

[โ€“] [email protected] 2 points 11 months ago* (last edited 11 months ago)

That's just showing off, take an upvote