Compare commits

...

2 Commits

3 changed files with 10 additions and 4 deletions

View File

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

View File

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

View File

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