• @tetraodon@feddit.it
    link
    fedilink
    19
    edit-2
    2 years ago

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

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