Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Executing commands at start of interactive ion session

Commands can be executed at the start of an interactive ion session. This can be useful to set up environmental variables specific to ion, set aliases, set vim keybindings, etc.

Ion reads those initial commands from a file called "initrc". Ion looks for this file in its configuration folder according to the xdg standard.

This typically results in the configuration path ~/.config/ion by default. So ion searches for the file initrc in the folder ~/.config/ion normally.

For example the following content of the initrc file causes ion to start with vim bindings enabled.

keybindings vi 

You can change the location where ion looks for its configuration folder by setting the environmental variable $XDG_CONFIG_HOME to a different path.

export XDG_CONFIG_HOME='/home/some_user/myconfig' 

In this example ion will look at the path /home/some_user/myconfig/ion
for the initrc file.