mirror of
https://github.com/reonokiy/dotfiles.git
synced 2025-06-15 14:12:53 +02:00
add windows config
This commit is contained in:
parent
753e2a2da0
commit
6d8603f31f
2 changed files with 33 additions and 0 deletions
|
@ -1 +1,9 @@
|
|||
README.md
|
||||
|
||||
{{ if ne .chezmoi.os "windows" }}
|
||||
Documents
|
||||
{{ end }}
|
||||
|
||||
{{ if ne .chezmoi.os "linux" }}
|
||||
.zshrc
|
||||
{{ end }}
|
||||
|
|
25
Documents/PowerShell/Microsoft.PowerShell_profile.ps1
Normal file
25
Documents/PowerShell/Microsoft.PowerShell_profile.ps1
Normal file
|
@ -0,0 +1,25 @@
|
|||
# init
|
||||
Invoke-Expression (&starship init powershell) # starship
|
||||
|
||||
# micromamba
|
||||
#region mamba initialize
|
||||
# !! Contents within this block are managed by 'mamba shell init' !!
|
||||
$Env:MAMBA_ROOT_PREFIX = "C:\Users\remon\.micromamba"
|
||||
$Env:MAMBA_EXE = "C:\Users\remon\AppData\Local\micromamba\micromamba.exe"
|
||||
(& $Env:MAMBA_EXE 'shell' 'hook' -s 'powershell' -p $Env:MAMBA_ROOT_PREFIX) | Out-String | Invoke-Expression
|
||||
#endregion
|
||||
|
||||
# Alias
|
||||
Set-Alias -Name ls -Value eza
|
||||
Set-Alias -Name mm -Value micromamba
|
||||
Set-Alias -Name dotfiles -Value chezmoi
|
||||
|
||||
function ya {
|
||||
$tmp = [System.IO.Path]::GetTempFileName()
|
||||
yazi $args --cwd-file="$tmp"
|
||||
$cwd = Get-Content -Path $tmp
|
||||
if (-not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) {
|
||||
Set-Location -Path $cwd
|
||||
}
|
||||
Remove-Item -Path $tmp
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue