• @[email protected]
      link
      fedilink
      19
      edit-2
      1 year ago

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

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