diff --git a/root/.bashrc b/root/.bashrc index 8b61441..d0f06c8 100644 --- a/root/.bashrc +++ b/root/.bashrc @@ -2,6 +2,12 @@ # ~/.bashrc # +if [ -d "$HOME/.gnupg" ]; then + if [ $(stat -c '%a' "$HOME/.gnupg") -ne 700 ]; then + chmod 700 "$HOME/.gnupg" + fi +fi + # If not running interactively, don't do anything [[ $- != *i* ]] && return @@ -13,10 +19,6 @@ if ! shopt -oq posix; then fi fi -# Advanced command-not-found hook -source /usr/share/doc/find-the-command/ftc.bash - - xhost +local:root > /dev/null 2>&1 complete -cf sudo @@ -84,3 +86,8 @@ powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/share/powerline/bindings/bash/powerline.sh + +# Advanced command-not-found hook +source /usr/share/doc/find-the-command/ftc.bash + +PATH="$PATH:$HOME/.local/bin/"