mirror of
https://github.com/smarttommyau/tmux-for-windows.git
synced 2025-04-18 20:28:22 +00:00
28 lines
607 B
Markdown
28 lines
607 B
Markdown
# Tmux for windows using wsl support
|
|
|
|
# Pre-request
|
|
- WSL
|
|
|
|
# Setup WSL
|
|
|
|
Install a new distro, alpine is recommended.\
|
|
Follow the basic instruction on installing it.\
|
|
Then install tmux.\
|
|
Alpine : apk update&&apk add tmux\
|
|
Debian/ubuntu: apt install tmux
|
|
|
|
Add new file ~/.profile with this code to automatically run powershell in tmux sessions
|
|
```
|
|
if [ -n "$TMUX" ]; then
|
|
pwsh.exe
|
|
fi
|
|
```
|
|
# Install our program
|
|
Add the path you download our program to environment path.
|
|
|
|
# Setup our program
|
|
Add or edit file tmux.conf on the same folder of our program.
|
|
```
|
|
distro: alpine //your distro name
|
|
```
|
|
# Enjoy |