~iany/ Menu
  • Series
  • Tags
  1. Home
  2. Tags
  3. PowerShell

PowerShell

A collection of 3 articles

Use tmux for PowerShell in Windows Terminal

You can get tmux session persistence and multiplexing in Windows Terminal by running tmux inside WSL and setting the default shell to PowerShell. New panes and windows will then start pwsh.exe instead of a Linux shell. Here’s a minimal setup using small wrappers and the tmux -C attach trick to configure new sessions.

Updated Jan 30, 2026  •  3 min read

Temporary Vi Mode in PowerShell

I miss the feature in readline (Bash/Zsh) where Ctrl+x, Ctrl+v switches to Vi command mode temporarily. In that workflow, entering Insert mode switches back to Emacs mode. PSReadLine has a command ViCommandMode, but binding it directly in Emacs mode will report errors on every key input. The solution requires handling the mode change event to toggle the global EditMode between Emacs and Vi.

Updated Nov 22, 2025  •  1 min read

Envrc Alternative for PowerShell in Windows

This post introduces a solution for automatically setting up and tearing down shell environments for PowerShell in Windows. It is proposed as a potential alternative to the bash-based tool direnv, which, while effective at loading .envrc files in the current or nearest ancestor directory, has limited compatibility with PowerShell in Windows.

Updated Nov 22, 2025  •  3 min read

© 2026  •  ~iany/  •  CC-BY-SA 4.0