Last active
January 27, 2021 11:54
-
-
Save Bosphoramus/71a83acfb64dd9122398de4d63209897 to your computer and use it in GitHub Desktop.
This file contains 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
#### My Aliases #### | |
# LARAVEL'S ARTISAN ALIAS | |
function art($arg1, $arg2, $arg3, $arg4, $arg5) { | |
php artisan $arg1 $arg2 $arg3 $arg4 $arg5 | |
} | |
# MY DCROOT | |
function www($arg1) { | |
$arg="c:/laragon/www/" + $arg1 | |
cd $arg | |
} | |
# MY PROJECTS FOLDER | |
function pro($arg1) { | |
$arg="d:/Proyectos/" + $arg1 | |
cd $arg | |
} | |
# SQL QUICK SHELL | |
function sql($user = "root") { | |
mysql -u $user -p | |
} | |
# SEARCH A TERM IN GLOBAL PWSH HISTORY | |
function hist($arg) { | |
cat (Get-PSReadlineOption).HistorySavePath | grep $arg | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bash-like aliases for Powershell :)