-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement insectrc (closes #107) #248
Conversation
Awesome, thank you very much for your contribution! |
Hi,
I have created the
with the content:
when I run insect nothing is changed
... so, what am I doing wrong? |
@davidrihtarsic your insectrc is not a valid expression: |
@Mstrodl thx for the answer. OK, fair enough... I changed the content in
... but when I run insect, the function is not working:
However, if I run these commands inside insect, I get these results:
I really love insect, I use it on a daily basis, but it would be very nice to have some personal functions inside. Does anyone knows if there is a way to run it in debug mode e.g.:
... do you have any other ideas? |
How did you install insect? I guess I haven't released a new version since this feature was merged. |
@sharkdp thx for your comment. |
This is now available in v5.7.0. I also updated the insect package on AUR. Let me know if this works, @davidrihtarsic |
Very excited to have the |
The latter, correct. There's nothing special about the insectrc environment. |
Great, thank you. If I understand correctly, however, the keyword |
Oh, right. I'll reopen that ticket.
.. and variables, yes. |
On startup, insect will read and execute
~/.insectrc
before evaluating anything. If this behaviour isn't desired, the user can simply set theINSECT_NO_RC
environment variable totrue
to disable it.This is useful for a few reasons. Personally, I'm using it to keep some commonly-used functions: