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 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/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" 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 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=$?