bashrc : fix non-interactive shells.

This commit is contained in:
Dmitry Voronin 2023-11-03 01:19:16 +03:00
parent ad1e5cc22c
commit 2a595072bf
2 changed files with 20 additions and 20 deletions

View file

@ -1,5 +1,8 @@
#!/bin/bash
# If not running interactively, don't do anything.
[[ "$-" != *i* ]] && return
#home="/var/home/voronind"
home="${HOME}"
module="${home}/.linux/bash/module/*.sh"

View file

@ -73,8 +73,6 @@ gu()
}
# autocomplete.
# if is a fix for rsync.
if [[ $- = *i* ]]; then
_completion_loader git
__git_complete gps _git_push
__git_complete gpsf _git_push
@ -92,7 +90,6 @@ if [[ $- = *i* ]]; then
__git_complete gt _git_tag
__git_complete gp _git_apply
__git_complete ga _git_add
fi
_gu()
{