Skip to content

Instantly share code, notes, and snippets.

View angelside's full-sized avatar
:octocat:

Sevdalin Sabev angelside

:octocat:
View GitHub Profile
@Daviid-P
Daviid-P / Microsoft.PowerShell_profile.ps1
Last active November 21, 2023 02:29
Powershell Profile
Function My-History {
[CmdletBinding()]
param()
cat $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
}
Remove-Item 'Alias:\history' -Force
New-Alias -Name 'history' -Value 'My-History' -Scope Global
New-Alias -Name 'grep' -Value 'Select-String' -Scope Global
@Descent098
Descent098 / Microsoft.PowerShell_profile.ps1
Last active November 21, 2023 02:30
Setting up windows terminal
# Create new global aliases
New-Alias USERPROFILE $env:userprofile
New-Alias PATH $env:path
New-Alias python3 python
New-Alias which where.exe
# NOTE: starship also adds an implicit: New-Alias ~ $env:userprofile
# Introducing a set of "aliases" (a hashmap) that will be auto-expanded to expected paths
$Custom_Alias = @{
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all