-
Hello, I've decided to use trash system-wide, including for nnn. Trash management programs supported by nnn are way too heavy for me dependency-wise, so I'm not using them. Intead, I've decided to use a more lightweight program (rmw). I've aliased it in my .bashrc (alias rm=rmw), and it works everywhere, except for nnn. nnn ignores it and seemingly keeps using "true" rm -rf, completely bypassing my trash directory. Now I know that my .bashrc is sourced correctly, since NNN_FIFO, NNN_PLUG and NNN_OPENER work and can be seen in the help. Can I somehow source my rm alias for nnn too? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Shell aliases are for interactive shell interactions. It doesn't get passed to other processes. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
master
branch now supports custom command in$NNN_TRASH
. You don't need to patch the source or use some wrapper anymore. See the wiki and manpage for more info.