Skip to content

Instantly share code, notes, and snippets.

@werdyii
Created November 5, 2020 13:27
Show Gist options
  • Save werdyii/321d460db81206c441c407725659049d to your computer and use it in GitHub Desktop.
Save werdyii/321d460db81206c441c407725659049d to your computer and use it in GitHub Desktop.
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
e.=explorer .
pwd=cd
clear=cls
c=cls
history=cat "%CMDER_ROOT%\config\.history"
unalias=alias /d $1
vi=vim $*
cmderr=cd /d "%CMDER_ROOT%"
csc="c:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe" $*
;= c:\Windows\Microsoft.NET\Framework64\v4.0.30319\
subl="C:\Osobne_data\APP\SublimeText3\sublime_text.exe" $*
;= composer =php c:\Users\kluckaa\composer.phar $*
;= cdh=cd c:\Osobne_data\Code\Hyperv\Homestead\
;= hs="c:\Osobne_data\Code\Hyperv\Homestead\hs.bat" $*
unalias=alias /d $1
ls=ls --show-control-chars -F --color $*
ll=ls -l -h --all --show-control-chars -F --color $*
;= # TERMINAL
;= ..='cd ..'
;= ...='cd ../..'
h=cd /d "%USERPROFILE%"
cdcode=cd C:\Osobne_data\Code
cdlara=cd C:\Osobne_data\Code\laravel
cdl=cd C:\Osobne_data\Code\laravel
cdwww=cd c:\Osobne_data\www
cdsql=cd C:\Osobne_data\APP\MAMP\bin\mysql\bin
cdmysql=cd C:\Osobne_data\APP\MAMP\bin\mysql\bin
cdlog=cd C:\Osobne_data\APP\MAMP\logs
df=df -h
diskusage=df -h
fu=du -ch
folderusage=du -ch
tfu=du -sh
totalfolderusage=du -sh
;= # LARAVEL
;= php=php -c C:\Osobne_data\APP\MAMP\conf\php7.2.1\php.ini $*
art=php artisan $*
ahelp=php artisan help $*
migrate=php artisan migrate
mig:r=php artisan migrate:reset
mig:roll=php artisan migrate:rollback
serve=php artisan serve
rl=php artisan route:list
g:c=php artisan make:controller $*
g:mig=php artisan make:migration $*
g:mp=php artisan make:migration:pivot $*
g:ms=php artisan make:migration:schema $*
g:m=php artisan make:model $*
g:prov=php artisan make:provider $*
g:r=php artisan make:request $*
tinker=php artisan tinker
cr=composer require
cu=composer update
ci=composer install
cda=composer dump-autoload -o
;= # GIT
gl=git log --oneline --all --graph --decorate $*
gs=git status
gb=git branch $*
gaa=git add .
ghr=git reset --hard $t git clean -df
gc=git checkout $*
gcm=git commit -m $*
phpunit=vendor\bin\phpunit.bat
phplog=tail -f c:\Osobne_data\APP\MAMP\logs\phperror.log
rsync=%CMDER_ROOT%\vendor\cwRsync\bin\rsync.exe $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment