add git-sync config variable to .bashrc
This commit is contained in:
parent
185a06d5dc
commit
c4f4014157
1 changed files with 19 additions and 0 deletions
19
functions.sh
19
functions.sh
|
@ -494,4 +494,23 @@ turnoffbeep() {
|
|||
file=~/.inputrc
|
||||
[ -e "$file" ] && grep -qxF "$line" "$file" || echo "$line" >> "$file"
|
||||
}
|
||||
|
||||
turnoffconfigsync() {
|
||||
line='MYSHELLCONFIG_GIT_SYNC='
|
||||
file=~/.bashrc
|
||||
if [ -e "$file" ] ; then
|
||||
sed -i -e "/$line/d" "${file}"
|
||||
fi
|
||||
sed -i -e "/#MYSHELLCONFIG-start/i${line}false" "$file"
|
||||
}
|
||||
|
||||
turnonconfigsync() {
|
||||
line='MYSHELLCONFIG_GIT_SYNC='
|
||||
file=~/.bashrc
|
||||
if [ -e "$file" ] ; then
|
||||
sed -i -e "/$line/d" "${file}"
|
||||
fi
|
||||
sed -i "/#MYSHELLCONFIG-start/i${line}true" "$file"
|
||||
}
|
||||
|
||||
#EOF
|
||||
|
|
Loading…
Reference in a new issue