-
Notifications
You must be signed in to change notification settings - Fork 0
/
pwsh.ps1
executable file
·23 lines (20 loc) · 912 Bytes
/
pwsh.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Set-PSReadlineKeyHandler -Key ctrl+d -Function ViExit
# Import-Module 'C:\dev\vcpkg\scripts\posh-vcpkg'
# Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Import-Module posh-git
Import-Module Posh-SSH
# Set-PoshPrompt -Theme ~/.go-my-posh.json
Invoke-Expression (&starship init powershell)
function cdgh { set-location "~\Documents\GitHub" };
function cdcc { set-location "~\Google Drive\school\MS" };
function cdd { set-location "~\Desktop" };
function pwshconfig { vim "~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1" };
function vimconfig { vim "~\.vimrc" };
function fm { lf };
function fml {
lf -last-dir-path "C:\Users\tunak\.lfdir\last_dir";
$LASTDIR = (cat ~\.lfdir\last_dir);
cd $LASTDIR
};
# function fml { lf -last-dir-path ~\.lfdir\last_dir; $LASTDIR = (cat ~\.lfdir\last_dir); echo $LASTDIR };
function sudo { powershell.exe Start-Process -Verb RunAs wt };