We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have ported example.sh for Windows Terminal. There are a few differences from the original version:
example.sh
cd
cdir
&&
Microsoft.PowerShell_profile.ps1 ($PROFILE)
Set-Variable -Option Constant -Name RPG -Value "C:\your\path\to\rpg-cli.exe" function rpg() { & $RPG $args sync_rpg } function cdir() { & $RPG cd $args sync_rpg } function dn() { $current = (Get-Item $PWD).BaseName if ($current -match "^[0-9]+$") { $next = (([int]$current) + 1) % 10 New-Item -ItemType Directory -ErrorAction SilentlyContinue $next > $null cdir $next } elseif (Test-Path "1") { cdir 1 } else { New-Item -ItemType Directory -ErrorAction SilentlyContinue "dungeon\1" > $null cdir "dungeon/1" } rpg ls } function sync_rpg() { $pwd = & $RPG pwd Set-Location -Path $pwd }
The text was updated successfully, but these errors were encountered:
Can you send a pull request to add this to the shell dir?
Sorry, something went wrong.
Add example.ps1 (facundoolano#149)
983628d
Add example.ps1 (#149) (#150)
ad582b6
Closed by #150
No branches or pull requests
I have ported
example.sh
for Windows Terminal. There are a few differences from the original version:cd
, so I usedcdir
instead.&&
can be used in PowerShell 7, but it’s not available in version 5, so I omitted the error handling.Microsoft.PowerShell_profile.ps1 ($PROFILE)
The text was updated successfully, but these errors were encountered: