Skip to content

Read init file only when using interactive shell

Michael Aaron Murphy requested to merge clippix:init_read into master

Created by: clippix

Execute the initrc file only when using ion in interactive mode as it probably makes less sense in the other modes.

Moreover, it fixes modification of the context done in the initrc file which weren't taken into account as the context wasn't initialized at the time of the script execution (e.g.: set -o vi in the initrc didn't set the vi editing mode in interactive sessions).

Merge request reports