Tabs to two spaces.
This commit is contained in:
parent
0912f2d3d4
commit
03303c9e36
6 changed files with 49 additions and 49 deletions
26
shrc
26
shrc
|
|
@ -19,21 +19,21 @@ function md5_opt()
|
|||
}
|
||||
|
||||
if [[ $FROM_RC -eq 1 ]]; then
|
||||
alias shrc=". shrc"
|
||||
alias shrc=". shrc"
|
||||
else
|
||||
BASENAME=$(basename $SHELL)
|
||||
RC_NAME="."$BASENAME"rc"
|
||||
RC_PATH="$HOME/$RC_NAME"
|
||||
BASENAME=$(basename $SHELL)
|
||||
RC_NAME="."$BASENAME"rc"
|
||||
RC_PATH="$HOME/$RC_NAME"
|
||||
|
||||
# Optional MD5 checks
|
||||
HAS_CHANGED=1
|
||||
SUM1=$(md5_opt "$RC_PATH")
|
||||
SUM2=
|
||||
# Optional MD5 checks
|
||||
HAS_CHANGED=1
|
||||
SUM1=$(md5_opt "$RC_PATH")
|
||||
SUM2=
|
||||
|
||||
# This sets a default if the variable does not exist.
|
||||
EDITOR=${EDITOR:-$(ched)}
|
||||
$EDITOR "$RC_PATH"
|
||||
wait_for_editor $EDITOR "$RC_PATH"
|
||||
# This sets a default if the variable does not exist.
|
||||
EDITOR=${EDITOR:-$(ched)}
|
||||
$EDITOR "$RC_PATH"
|
||||
wait_for_editor $EDITOR "$RC_PATH"
|
||||
|
||||
SUM2=$(md5_opt "$RC_PATH")
|
||||
|
||||
|
|
@ -42,6 +42,6 @@ else
|
|||
echo "The RC-file $RC_NAME has not changed on disk. Not sourcing."
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
source "$RC_PATH"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue