Skip to content

Instantly share code, notes, and snippets.

@Bosphoramus
Last active January 27, 2021 11:54
Show Gist options
  • Save Bosphoramus/71a83acfb64dd9122398de4d63209897 to your computer and use it in GitHub Desktop.
Save Bosphoramus/71a83acfb64dd9122398de4d63209897 to your computer and use it in GitHub Desktop.
#### 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
}
@Bosphoramus
Copy link
Author

Bash-like aliases for Powershell :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment