Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akirco committed Dec 25, 2024
1 parent 5461498 commit e515c8d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ scoop bucket add aki 'https://github.com/akirco/aki-apps.git'
```powershell
# link profile
New-Item -Path $PROFILE.AllUsersCurrentHost -ItemType SymbolicLink -Target $env:USERPROFILE\.config\dotfiles\powershell\Microsoft.PowerShell_profile.ps1 -Force
cd d: && git clone https://github.com/akirco/dotfiles.git config
New-Item -Path $PROFILE.AllUsersCurrentHost -ItemType SymbolicLink -Target D:\config\powershell\Microsoft.PowerShell_profile.ps1 -Force
```


Expand Down
26 changes: 13 additions & 13 deletions powershell/Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

# global path
# git clone https://github.com/akirco/dotfiles "$env:USERPROFILE\\documents\\dotfiles"
$ModulePath = "$env:USERPROFILE\\.config\\dotfiles\\powershell\\modules"
$ModulePath = "D:\\config\\powershell\\modules"
$OMPThemesPath = "$ModulePath\\..\\theme\\omp.json"


# Enable-ExperimentalFeature PSSubsystem
try {
Get-PSSubsystem -Kind CommandPredictor | Out-Null
Get-PSSubsystem -Kind CommandPredictor | Out-Null
}
catch {
Enable-ExperimentalFeature -Name PSSubsystemPluginModel -WarningAction SilentlyContinue
Enable-ExperimentalFeature -Name PSSubsystemPluginModel -WarningAction SilentlyContinue
}
# initial oh-my-posh themes
# oh-my-posh --init --shell pwsh --config $OMPThemesPath | Invoke-Expression
Expand All @@ -28,7 +28,7 @@ Import-Module DirectoryPredictor
Import-Module PSEverything

$(Get-ChildItem -Path $ModulePath).FullName | ForEach-Object {
Import-Module $_
Import-Module $_
}


Expand All @@ -55,15 +55,15 @@ Enable-PoshTooltips
Enable-PoshTransientPrompt
Set-PSReadlineOption -ShowToolTip -PredictionViewStyle ListView -HistoryNoDuplicates -WarningAction SilentlyContinue
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -HistoryNoDuplicates -Colors @{
Command = '#21acff'
Number = '#c678dd'
Member = '#e43535'
Operator = '#f6ad55'
Type = '#6262ea'
Variable = '#21c68b'
Parameter = '#e9967a'
ContinuationPrompt = '#ff8c00'
Default = '#12c768'
Command = '#21acff'
Number = '#c678dd'
Member = '#e43535'
Operator = '#f6ad55'
Type = '#6262ea'
Variable = '#21c68b'
Parameter = '#e9967a'
ContinuationPrompt = '#ff8c00'
Default = '#12c768'
}
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Expand Down

0 comments on commit e515c8d

Please sign in to comment.