Compare commits

...

2 Commits

3 changed files with 10 additions and 4 deletions

View File

@ -37,6 +37,8 @@
- create:
~/.ssh/keys/:
mode: 0700
~/.ssh/known_hosts.d:
mode: 0700
- shell:
-

View File

@ -230,7 +230,7 @@ function git_status() {
### Test For Changes ### {{{
## Change this to test for 'ahead' or 'behind'!
local GChanges="$(echo ${GStat} | tr ':' '\n' | grep -v "^$" | grep -v "^\#\#" | wc -l | tr -d ' ')"
local GChanges="$(echo ${GStat} | tr ':' '\n' | grep -v "^$" | grep -v "^##" | wc -l | tr -d ' ')"
if [ "$GChanges" == "0" ]; then
local GitCol=$Gre
else
@ -271,7 +271,7 @@ function git_status() {
PS1+="${Pur}${RCol}${GMod}" # Modified
fi
local GUnt="$(echo ${GStat} | tr ':' '\n' | grep -c "^\?")"
local GUnt="$(echo ${GStat} | tr ':' '\n' | grep -c "^?")"
if [ "$GUnt" -gt "0" ]; then
PS1+="${Yel}?${RCol}${GUnt}" # Untracked
fi

View File

@ -3,5 +3,9 @@ Include ~/.ssh/config.d/*
# Defaults
Host *
IdentitiesOnly yes
IdentityFile ~/.ssh/keys/%h
ForwardAgent no
ForwardX11 no
IdentitiesOnly yes
IdentityFile ~/.ssh/keys/%h
UserKnownHostsFile ~/.ssh/known_hosts ~/.ssh/known_hosts.d/%h ~/.ssh/known_hosts2
UpdateHostKeys ask