From ff6115e988b5f133f6e5b4e7657a2faa432a305c Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Mon, 22 Aug 2016 16:02:16 +0530 Subject: [PATCH] update inputrc for history --- playbooks/production/includes/setup_prod_env.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/production/includes/setup_prod_env.yml b/playbooks/production/includes/setup_prod_env.yml index 8d57a2ab..a61578ba 100755 --- a/playbooks/production/includes/setup_prod_env.yml +++ b/playbooks/production/includes/setup_prod_env.yml @@ -123,3 +123,13 @@ become: yes become_user: root when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' + + - name: insert/update inputrc for history + blockinfile: + dest: "/home/{{ ansible_user_id }}/.inputrc" + create: yes + block: | + ## arrow up + "\e[A":history-search-backward + ## arrow down + "\e[B":history-search-forward \ No newline at end of file