This website works better with JavaScript.
Home
Explore
Help
Sign In
10sr
/
dotfiles-mirror
mirror of
https://github.com/10sr/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
update __my_ps1_tmux
pull/1/head
10sr
12 years ago
parent
7f50031a77
commit
7aeaba75cc
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
bashrc
+ 2
- 1
bashrc
View File
@@ -454,11 +454,12 @@ ip-address(){
test -n "$ip" && printf $1 $ip
}
TMUX_CURRENT=$(tmux display -p '#S:#I:#W.#P')
__my_ps1_tmux(){
local last=$?
if test -n "$TMUX"
then
echo "[TMUX:$TMUX_
PANE
]"
echo "[TMUX:$TMUX_
CURRENT
]"
fi
return $last
}
Write
Preview
Loading…
Cancel
Save