Last active
October 3, 2018 07:51
-
-
Save michaelradionov/2d5cf3577ae631e7d69caf38b58fe977 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
# Other aliases | |
alias la='ls -alh' | |
alias hosts='cat ~/.ssh/config' # я храню хосты в этом файле. это позволяет подключаться к ним вот так ssh 47 | |
alias passgen='openssl rand -base64 6' #сгенерировать пароль | |
alias genpass='passgen' # я тупой | |
alias b='m ~/.bashrc' | |
alias m='micro' | |
alias atom='atom -a' | |
alias code='code -a' | |
alias p='pstorm' | |
alias pa='php artisan' | |
alias pu='phpunit' | |
alias mfs='php artisan migrate:fresh --seed' | |
alias lsof='lsof -i -n -P' | |
alias super='function _super(){ grep -rli "$1" * | xargs -i@ sed -i "s|$1|$2|g" @ ; };_super' # Поиск с заменой. super foo bar заменит все foo на bar | |
alias superfile='function _superfile(){ perl -pi -w -e s/$1/$2/g $3 ; };_superfile' | |
alias eh='m /etc/hosts' | |
# Apache and PHP aliases | |
alias al='tail -f /usr/local/var/log/httpd/error_log' | |
alias ea='m /usr/local/etc/httpd/httpd.conf' | |
alias ra='sudo apachectl restart' | |
alias ep='m /usr/local/etc/php/7.2/php.ini' | |
alias vhosts="cd /usr/local/etc/httpd/vhosts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment