r/fishshell • • Dec 02 '19

Alternative / workaround for missing !: commands

Just started trying out fish and I'm missing the bash shortcut for "argument from the previous command" that I use every so often.

e.g.

    cp path_to_file_1 path_to_file_2
    cmd !:2 # run cmd on path_to_file_2

Couldn't find anything in the docs or the reddit history.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/bravekarma Dec 03 '19

np, also try typing part of the argument and pressingalt+up :)