From 1609646d9ddf2b63d068e6b37eb1e9a0bbd65baf Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Tue, 19 Dec 2023 10:31:55 +0500 Subject: [PATCH] Update --- skel/.bashrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/skel/.bashrc b/skel/.bashrc index 8b61441..d0f06c8 100644 --- a/skel/.bashrc +++ b/skel/.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/"