aboutsummaryrefslogtreecommitdiff
path: root/documents/powershell/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-06-02 21:47:40 +0200
committersrdusr <trevorgray@srdusr.com>2024-06-02 21:47:40 +0200
commit4085e260d98bdb10fc2e5b999007c44a03aee666 (patch)
tree3de8c8b2030a451388f5a4f121c5acc0880cfeca /documents/powershell/Microsoft.PowerShell_profile.ps1
parent388f4df468567759647ff6f13b056abb9eda4afc (diff)
downloaddotfiles-4085e260d98bdb10fc2e5b999007c44a03aee666.tar.gz
dotfiles-4085e260d98bdb10fc2e5b999007c44a03aee666.zip
Removed powershell from parent directory
Diffstat (limited to 'documents/powershell/Microsoft.PowerShell_profile.ps1')
-rw-r--r--documents/powershell/Microsoft.PowerShell_profile.ps153
1 files changed, 0 insertions, 53 deletions
diff --git a/documents/powershell/Microsoft.PowerShell_profile.ps1 b/documents/powershell/Microsoft.PowerShell_profile.ps1
deleted file mode 100644
index db4d580..0000000
--- a/documents/powershell/Microsoft.PowerShell_profile.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-# THIS IS NEEDED FOR GIT TAB COMPLETION
-Import-Module posh-git
-
-# Set-PoshPrompt -Theme Paradox
-# Set-PoshPrompt -Theme ~/.mytheme.tokyonight.omp.yaml
-# Set-PoshPrompt -Theme ~/.omp/themes/tokyonight.omp.yaml
-oh-my-posh init pwsh --config ~/.omp/themes/tokyonight.omp.yaml | Invoke-Expression
-
-# Dotfiles special git command
-function global:config {
- git --git-dir="$env:USERPROFILE\.cfg" --work-tree="$env:USERPROFILE" $args
-}
-
-# Chocolatey profile
-$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
-if (Test-Path $ChocolateyProfile) {
- Import-Module "$ChocolateyProfile"
-}
-
-# PSReadLine extension to provide VI keybindings
-Set-PSReadlineOption -EditMode vi
-Set-PSReadLineKeyHandler -Key Tab -Function Complete
-Set-PSReadLineKeyHandler -Key Ctrl+r -Function ReverseSearchHistory
-
-# Remove gl, gp, gm aliases for git commands
-Remove-Alias -Force -Name gl
-Remove-Alias -Force -Name gp
-Remove-Alias -Force -Name gm
-
-# Custom git functions
-function gs { git status }
-function gf { git fetch }
-function gl { git pull }
-function gp { git push }
-function gpt { git push --tags }
-function gP { git push --force-with-lease }
-function ga { git add }
-function gcam { git commit -am }
-function gd { git diff }
-function gw { git diff --word-diff }
-function glog { git log }
-function gdog { git log --graph --oneline --all }
-function gadog { git log --graph --decorate --all }
-function gb { git branch }
-function gba { git branch --all }
-function gco { git checkout }
-function gm { git merge }
-
-# For zoxide v0.8.0+
-Invoke-Expression (& {
- $hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
- (zoxide init --hook $hook powershell | Out-String)
-})