Skip to content

Commit 71616fc

Browse files
author
Oliver Etchebarne
committed
* Better contributors display
1 parent 986df4d commit 71616fc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Diff for: tmux-git.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
CONFIG_FILE=~/.tmux-git.conf
88

9-
# Use a different readlink according the OS
9+
# Use a different readlink according the OS.
10+
# Kudos to https://github.com/npauzenga for the PR
1011
if [[ `uname` == 'Darwin' ]]; then
1112
# Mac
1213
READLINK='greadlink -e'
@@ -27,7 +28,8 @@ if [ ! -f $CONFIG_FILE ]; then
2728
TMUX_STATUS_LOCATION='right'
2829
2930
# Status for where you are out of a repo. Default is your pre-existing status
30-
# line. Idea from https://github.com/danarnold
31+
# line.
32+
# Kudos to https://github.com/danarnold for the idea.
3133
TMUX_OUTREPO_STATUS=`tmux show -vg status-$TMUX_STATUS_LOCATION`
3234
3335
# Function to build the status line. You need to define the $TMUX_STATUS
@@ -96,8 +98,9 @@ find_git_stash() {
9698
}
9799

98100
update_tmux() {
99-
100-
# This only work if the cwd is outside of the last branch
101+
102+
# The trailing slash is for avoiding conflicts with repos with
103+
# similar names. Kudos to https://github.com/tillt for the bug report
101104
CWD=`$READLINK "$(pwd)"`/
102105

103106
LASTREPO_LEN=${#TMUX_GIT_LASTREPO}
@@ -130,7 +133,7 @@ update_tmux() {
130133
update_tmux
131134
else
132135
# Be sure to unset GIT_DIRTY's bright when leaving a repository.
133-
# Idea from https://github.com/danarnold
136+
# Kudos to https://github.com/danarnold for the idea
134137
tmux set-window-option status-$TMUX_STATUS_LOCATION-attr none > /dev/null
135138

136139
# Set the out-repo status

0 commit comments

Comments
 (0)