Last active
March 6, 2025 17:42
-
-
Save metinsanli/677a4718371dae6512a63dfc47237c7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy to $env:HOMEPATH\Documents\WindowsPowerShell\profile.ps1 | |
| # ALIAS | |
| Set-Alias -Name v -Value nvim | |
| Set-Alias -Name vi -Value nvim | |
| Set-Alias -Name vim -Value nvim | |
| Set-Alias -Name np -Value $env:ProgramFiles\Notepad++\notepad++.exe | |
| # GIT | |
| function gits() { git status --short } | |
| function gitl() { git log --oneline } | |
| function gita($arg) { git add $arg } | |
| function gitc($arg) { git commit -m $arg} | |
| function gitld() { git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all } | |
| function gitd($arg) { git diff $arg } | |
| # CONNECTION | |
| function dlna_server() { rclone serve dlna --read-only --log-trace --name $env:USERDOMAIN $env:HOMEPATH\Downloads } | |
| function ftp_server() { rclone serve ftp --addr :2121 $env:HOMEPATH\Downloads } | |
| function pipupdate() { | |
| $outdated = python -m pip list --outdated | Select-Object -Skip 2 | |
| $fw = $outdated -split '\n' | ForEach-Object { $_.Split(' ')[0] } | |
| $count = $fw.Count | |
| foreach ( $pack in $fw) { | |
| Write-Host "`n[$count] updating -- $pack --" | |
| python -m pip --no-cache-dir install --upgrade $pack | |
| $count-- | |
| } | |
| } | |
| # IMPORT FROM EXTERNAL FILES | |
| # https://github.com/TheDotSource/New-ISOFile | |
| . $env:HOMEPATH\Documents\WindowsPowerShell\New-ISOFile.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment