mirror of https://github.com/kastdeur/dotfiles.git
Compare commits
2 Commits
d28bc64cbf
...
efa88e6963
Author | SHA1 | Date |
---|---|---|
Eric Teunis de Boone | efa88e6963 | |
Eric Teunis de Boone | ff06c1478a |
|
@ -37,6 +37,8 @@
|
|||
- create:
|
||||
~/.ssh/keys/:
|
||||
mode: 0700
|
||||
~/.ssh/known_hosts.d:
|
||||
mode: 0700
|
||||
|
||||
- shell:
|
||||
-
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue