mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
Update current.sh
This commit is contained in:
parent
1b70d09086
commit
1dfa877f18
1 changed files with 7 additions and 3 deletions
|
|
@ -1,14 +1,18 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
source "$current_dir"/utils.sh
|
||||||
|
|
||||||
start_icon=$(get_tmux_option "@tmux2k-start-icon" "session")
|
start_icon=$(get_tmux_option "@tmux2k-start-icon" "session")
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
current=""
|
||||||
case $start_icon in
|
case $start_icon in
|
||||||
session) start_icon=" #S" ;;
|
session) current=" #S" ;;
|
||||||
window) start_icon=" #W" ;;
|
window) current=" #W" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$start_icon"
|
echo "$current"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue