• tetraodon@feddit.it
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    11 months ago

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

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