Skip to main content

New answers tagged

5 votes
Accepted

how to alias the `history` function in fish shell

Two things are happening here: fish's alias actually creates a function. fish ships with a default history function already. So when you write alias history "PAGER='bat -l fish' history" ...
glenn jackman's user avatar
1 vote

how to alias the `history` function in fish shell

I succeeded using functions -c to copy the built-in history function. Turns out alias was just creating an history function that calls itself, while functions -c fully copies the function. functions -...
matan h's user avatar
  • 147

Top 50 recent answers are included