Turn your Windows terminal into the Akasha Terminal!
LICENSE: MIT
中文 | English
- Permanent
- Originally no configuration file
You can downloadMicrosoft.PowerShell_profile.ps1
in the Repository Releases,Then place this file inC:\Users\user_name\Documents\WindowsPowerShell\
.(Create a new folder if it doesn't exist)
This code can be added if you wish to change the title along with it:
$host.UI.RawUI.WindowTitle = "Akasha Terminal"
- In case of an error
If an error like this occurs:
Please try:. : File C:\Users\user_name\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
* Start PowerShell as Administrator
* Run the following command to view the current enforcement policy:
If the returned result is notGet-ExecutionPolicy
RemoteSigned
orUnrestricted
, then PowerShell is running an execution policy that restricts script execution. You can use the following command to change the execution policy:
This will allow the current user to run self-signed script files locally without asking the user for confirmation.Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Finally, a restart of PowerShell should fix the problem.
- If you encounter any other errors please submit Issues
- In case of an error
- Originally had a configuration file
You can run the following command to open the PowerShell configuration file:
Add the following code to the open configuration file:notepad $PROFILE
Save and close the configuration file and restart PowerShell.function prompt { Write-Host "[Powered by Akasha Terminal] " -NoNewline -ForegroundColor Cyan return "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) " } # Code by DuckStudio # Version 1.0
You can add the following code if you want to change the title along with it:
$host.UI.RawUI.WindowTitle = "Akasha Terminal"
- Originally no configuration file
- one-time-only
If you don't want to have[Powered by Akasha Terminal]
every time, and only want the current PowerShell to have[Powered by Akasha Terminal]
, then you can run the following command in PowerShell:
function prompt {
Write-Host "[Powered by Akasha Terminal] " -NoNewline -ForegroundColor Cyan
return "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
}
# Code by DuckStudio
# Version 1.1
# Note: this is multi-line code
You can add the following code if you want to change the title along with it:
$host.UI.RawUI.WindowTitle = "Akasha Terminal"
This will only work in the current PowerShell session.
- one-time-only
If you don't want to have[Powered by Akasha Terminal]
every time, and only want the current cmd to have[Powered by Akasha Terminal]
, then you can run the following command in cmd:
prompt [Powered by Akasha Terminal] $P$G
You can add the following code if you want to change the title along with it:
title Akasha Terminal
This will only work in the current cmd session.
- Run the following command to open the PowerShell configuration file:
notepad $PROFILE
- Remove the code added in the configuration file
- Save and close the configuration file and restart PowerShell.
What? You don't like Akasha Terminal?
Just change the [Powered by Akasha Terminal]
part of the code.
Note
Note that the PowerShell code has a single space after the content.
Example:
- In PowerShell
function prompt {
Write-Host "[Powered by Nahida] " -NoNewline -ForegroundColor Cyan
return "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
}
# Code by DuckStudio
# Version 1.1
# Note: this is multi-line code
- In cmd
prompt [Powered by Nahida] $P$G
Use DeepL to assist with translation.