Aliases for Bash
Saturday, 18 February 2023
12:23 pm
New Aliases
Here are the following added aliases for quality of life
cd… cd ..\..
cd…. cd ..\..\..
dirs “Recursive directory listing”
admin / su / sudo “Elevate to admin prompt”
Edit-Profile “Edit current powershell $PROFILE”
vim nvim “Neovim alias”
ll “file listing, excluding dirs”
g “cd to Documents\Github”
gcom “quick github commit”
lazyg “quick github commit and push”
Get-PubIP “Grab external IP”
uptime
reload-profile
find-file “recursive file search from current directory”
unzip
grep
touch
df “disk free”
sed
which
export
pkill “process killer”
pgrep “process finder”
À partir de l’adresse <[link]> 
function unzip ($file) { 
$dirname = (Get-Item &file) . Basename 
echo("Extracting", $file, "to", $dirname)
New-ltem -Force —ItemType directory -Path $dirname 
Expand-archive Sfile -OutputPath Sdirname -ShowProgress
}

function grep($regex, Sdir) { 
if ($dir ) {
ls $dir | select-string $regex 
return 
}
Sinput | select-string $regex 