File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ defaults write com.apple.Finder FXPreferredViewStyle Nlsv
17
17
chflags nohidden ~ /Library
18
18
19
19
# Set a really fast key repeat.
20
- defaults write NSGlobalDomain InitialKeyRepeat -int 50
20
+ defaults write NSGlobalDomain InitialKeyRepeat -int 15
21
21
defaults write NSGlobalDomain KeyRepeat -int 1
22
22
23
23
# Set the Finder prefs for showing a few different volumes on the Desktop.
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ git_dirty() {
28
28
}
29
29
30
30
git_prompt_info () {
31
- ref=$( $git symbolic-ref HEAD 2> /dev/null) || return
31
+ ref=$( $git symbolic-ref HEAD 2> /dev/null) || (echo " detached HEAD " && return)
32
32
# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})"
33
33
echo " ${ref# refs/ heads/ } "
34
34
}
@@ -39,7 +39,7 @@ git_prompt_info () {
39
39
need_push () {
40
40
if [ $( $git rev-parse --is-inside-work-tree 2> /dev/null) ]
41
41
then
42
- number=$( $git cherry -v origin/$( git symbolic-ref --short HEAD) 2> /dev/null | wc -l | bc)
42
+ number=$( $git cherry -v origin/$( git symbolic-ref --short HEAD 2> /dev/null ) 2> /dev/null | wc -l | bc)
43
43
44
44
if [[ $number == 0 ]]
45
45
then
You can’t perform that action at this time.
0 commit comments