-
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: 1 comment 4 replies
-
Shell aliases are for interactive shell interactions. It doesn't get passed to other processes. |
Beta Was this translation helpful? Give feedback.
I dont use the trash functionality, so I can't tell what behavior you are expecting
but basically you would probably get away by replacing
sed 's/"rm\b/"rmw/g' nnn.c
if yourrmw
supports the same flags asrm
after that just rungit diff
and process each line for potential issues.