From 7c297bbf28188ab3c37cd0f5dff784b53700ef9a Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 18 Sep 2015 12:10:53 +0200 Subject: [PATCH 1/4] Modified history params --- profile.d/history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.d/history b/profile.d/history index 6d7d972..0139525 100644 --- a/profile.d/history +++ b/profile.d/history @@ -5,4 +5,4 @@ export HISTSIZE=5000 export HISTFILESIZE=20000 export HISTTIMEFORMAT="[%d/%m/%Y %H:%M:%S] " export HISTCONTROL="ignoreboth" -export HISTIGNORE="[bf]g:exit:history*:*rm*-rf*:*rm*-f*:reboot:ls:ll:man:mutt" +export HISTIGNORE="[bf]g:exit:history*:^rm:reboot:ls:ll:man:mutt" From fecf3b6de03ce678abb2f1949a8c2658ff7eedba Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 18 Sep 2015 12:13:03 +0200 Subject: [PATCH 2/4] Updated config for anyenv --- profile.d/anyenv | 1 - rc.d/anyenv | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 rc.d/anyenv diff --git a/profile.d/anyenv b/profile.d/anyenv index b983e24..ec4e7bd 100644 --- a/profile.d/anyenv +++ b/profile.d/anyenv @@ -7,5 +7,4 @@ if [ -d "$HOME/.anyenv/bin" ] then export PATH="$HOME/.anyenv/bin:$PATH" - eval "$(anyenv init -)" fi diff --git a/rc.d/anyenv b/rc.d/anyenv new file mode 100644 index 0000000..6ae8fa7 --- /dev/null +++ b/rc.d/anyenv @@ -0,0 +1,10 @@ +#!/bin/bash + +# https://github.com/riywo/anyenv + +# git clone https://github.com/riywo/anyenv $HOME/.anyenv + +if ( which anyenv &> /dev/null ) +then + eval "$(anyenv init -)" +fi From d16070946bede25f87c70f07e4876f15043041a2 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 18 Sep 2015 12:13:41 +0200 Subject: [PATCH 3/4] Added some aliases for gentoo --- aliases.d/gentoo.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aliases.d/gentoo.bash b/aliases.d/gentoo.bash index ad805b9..61a615d 100644 --- a/aliases.d/gentoo.bash +++ b/aliases.d/gentoo.bash @@ -4,4 +4,6 @@ then alias etc-update='sudo etc-update' alias revdep-rebuild='sudo revdep-rebuild' alias eix='eix -F' + alias epro='sudo epro' + alias layman='sudo layman' fi From 0b6ea2e68bca27abb722f6f5081090769afe1367 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 18 Sep 2015 12:14:41 +0200 Subject: [PATCH 4/4] Modified prompt --- rc.d/prompt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc.d/prompt b/rc.d/prompt index 1de8e77..488a357 100644 --- a/rc.d/prompt +++ b/rc.d/prompt @@ -7,6 +7,9 @@ else export PS1='\[\e[01;32m\]\u@\h\[\e[01;34m\] \w \$\[\e[0m\] ' fi +# Limit the path to 3 levels +PROMPT_DIRTRIM=3 + # Add a smiley at end of prompt showing last command status code #smiley() { # ret_val=$?