-
Notifications
You must be signed in to change notification settings - Fork 0
/
Microsoft.PowerShell_profile.ps1
34 lines (25 loc) · 1.12 KB
/
Microsoft.PowerShell_profile.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#All the following "scripts", will only work with PowerShell.
# oh-my-posh Themes:
#oh-my-posh --init --shell pwsh --config ~/AppData\Local\Programs\oh-my-posh\themes\clean-detailed.omp.json | Invoke-Expression
oh-my-posh --init --shell pwsh --config ~/AppData\Local\Programs\oh-my-posh\themes\kali.omp.json | Invoke-Expression
# Terminal-Icons:
Import-Module Terminal-Icons
#PSReadLine for PowerShell
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSFzfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadLineChordReverseHistory 'Ctrl+r'
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Functions
function repo { cd "E:\repo"}
function home { cd "C:\Users\Admin\Desktop"}
function nvimSettings { cd "C:\Users\Admin\AppData\Local\nvim"}
function os { cd "E:\repo\os"}
# Alias
Set-Alias -name new -value New-Item
Set-Alias -name rem -value del
Set-Alias -name run -value Bash
Set-Alias -name ll -value dir
Set-Alias -name l -value dir
Set-Alias -name mk -value mkdir
Set-Alias -name info -value neofetch
Set-Alias -name surreal -value C:\Users\Admin\SurrealDB\surreal