Read ~/.config/profanity/inputrc

This commit is contained in:
James Booth
2015-12-06 02:12:20 +00:00
parent e9e54dca44
commit 53fd2b3534
3 changed files with 29 additions and 2 deletions

View File

@@ -421,6 +421,13 @@ _inp_rl_startup_hook(void)
// disable readline completion
rl_variable_bind("disable-completion", "on");
// check for and load ~/.config/profanity/inputrc
char *inputrc = prefs_get_inputrc();
if (inputrc) {
rl_read_init_file(inputrc);
free(inputrc);
}
return 0;
}