bashrc : fix non-interactive shells.
This commit is contained in:
parent
ad1e5cc22c
commit
2a595072bf
3
.bashrc
3
.bashrc
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Reference in a new issue