1
0
Fork 0
mirror of synced 2024-05-28 12:51:10 -04:00

Compare commits

...

4 commits

Author SHA1 Message Date
Adrian Calinescu fd480aabb8
Merge f5b086c89c into 1b88bf2127 2023-12-09 10:20:17 -07:00
Gregory Pakosz 1b88bf2127 fixed username detection on OpenBSD 2023-12-08 16:12:31 +01:00
Gregory Pakosz 78c8d0483d added FreeBSD support to _battery_info(), resolves #680 2023-12-05 17:32:26 +01:00
Adrian Calinescu f5b086c89c
Works with the new Windows Terminal (plus screenshot) 2019-10-15 09:06:42 +03:00
2 changed files with 15 additions and 1 deletions

View file

@ -358,6 +358,11 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# count=$((count + 1))
# done
# ;;
# *FreeBSD*)
# discharging=$(sysctl -n 'hw.acpi.battery.state' | grep -q 1 && echo "true" || echo "false")
# charge=$(awk -v charge="$(sysctl -n 'hw.acpi.battery.life')" 'BEGIN { print charge / 100 }')
# count=1
# ;;
# esac
# if [ "$count" -ne 0 ]; then
# charge=$(awk -v charge="$charge" -v count="$count" 'BEGIN { print charge / count }')
@ -550,7 +555,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# '
# ;;
# *)
# ps -t "$pane_tty" -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
# ps -t "/dev/$pane_tty" -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
# ((/ssh/ && !/-W/) || !/ssh/) && !/tee/ {
# user[$2] = $1; if (!child[$3]) child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = substr($0,4)
# }

View file

@ -108,6 +108,13 @@ Troubleshooting
one, Powerline symbols will be broken.
The alternative is to use the [Mintty terminal for WSL][wsltty].
- **Will this work with the new [Windows Terminal]?**
Yes, yes it will. Here's a screenshot:
![image](https://user-images.githubusercontent.com/6472374/66804257-a8225d00-ef2a-11e9-901a-318a3a22151f.png)
[1681]: https://github.com/Microsoft/BashOnWindows/issues/1681
[wsltty]: https://github.com/mintty/wsltty
@ -384,3 +391,5 @@ font.
![regedit](https://cloud.githubusercontent.com/assets/553208/19741304/71a2f3ae-9bc0-11e6-96aa-4c09a812c313.png)
[font linking]: https://msdn.microsoft.com/en-us/goglobal/bb688134.aspx
[Windows Terminal]: https://github.com/microsoft/terminal