From 69469b14963fee8f6ba76a177eb20e2b198025c5 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 13 Aug 2018 14:11:06 +0200 Subject: [PATCH] colored ag & alias thefuck --- .bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.bashrc b/.bashrc index 5bee8a3..7a36861 100644 --- a/.bashrc +++ b/.bashrc @@ -166,6 +166,11 @@ function psg() { ps aux | grep -v grep | grep --ignore-case --color=always $1 | colout '^\S+\s+([0-9]+).*$' blue } +function agc() { + ag "$1" | colout "$1" +} + + # Notify when a command is completed, with a visual warning. function notify() { @@ -348,6 +353,9 @@ HISTTIMEFORMAT='%F %T ' # Manually switch to the bépo keyboard layout alias bepo="setxkbmap -layout fr -variant bepo -option" +# Import the correct alias for thefuck +eval $(thefuck --alias fuck) + # Use liquidprompt only if in an interactive shell if [[ $- == *i* ]]; then # Super nice prompt