From e5d3a113dee7e66373c5f62b7c68c7c95318c922 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Tue, 19 Dec 2023 10:43:56 +0500 Subject: [PATCH] Update --- root/.bashrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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/"