trogdoro / xiki

A shell console with GUI features

Home Page:http://xiki.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

annoying request for confirmation when deleting

espinielli opened this issue · comments

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...

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

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

I'll give it a try.

no, it needs to be forced in L81 as:

    rm -f $HOME/xiki/misc/tmp/grabbed_commands.notes

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