trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 208 forks source link

annoying request for confirmation when deleting #136

Closed espinielli closed 9 years ago

espinielli commented 9 years ago

Once I grab and execute one of my past commands I get the annoying request

rm: remove regular file ‘/Users/espin/xiki/misc/tmp/grabbed_commands.notes’?

One of my (life-saving) aliases is

alias rm='rm -i'

I wonder whether line 81 of .xsh should be modified to force the removal of grabbed_commands.notes...

espinielli commented 9 years ago

maybe I should simply skip aliases for non-interactive sessions with

[ -z "$PS1" ] && return
# my aliases below
# ...

I'll give it a try.

espinielli commented 9 years ago

no, it needs to be forced in L81 as:

    rm -f $HOME/xiki/misc/tmp/grabbed_commands.notes
espinielli commented 9 years ago

same at L49

trogdoro commented 9 years ago

I added the "-f" flag. Closing the issue.