Created
February 20, 2018 13:27
-
-
Save elalemanyo/662a29fffcb5a732daf03283457b3b6b to your computer and use it in GitHub Desktop.
Alias
This file contains hidden or 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
# ------------------------------------------------------------------- | |
# Drush | |
# https://www.lullabot.com/articles/switching-drush-versions | |
# ------------------------------------------------------------------- | |
# alias drush6='/www/drush6/vendor/bin/drush' | |
# alias drush='/www/drush7/vendor/bin/drush' | |
# alias drush8='/www/drush8/vendor/bin/drush' | |
# ------------------------------------------------------------------- | |
# Clear | |
# ------------------------------------------------------------------- | |
alias cl='clear' | |
# ------------------------------------------------------------------- | |
# Change directory | |
# ------------------------------------------------------------------- | |
# alias .='cd ..' | |
# alias ..='cd ../../' | |
# alias ...='cd ../../../' | |
# alias ....='cd ../../../../' | |
# alias .....='cd ../../../../../' | |
# alias ......='cd ../../../../../../' | |
alias yo='cd ~' | |
alias pro='cd /www' | |
# ------------------------------------------------------------------- | |
# Edit | |
# ------------------------------------------------------------------- | |
alias edit='open -a TextEdit' | |
alias wedit='open -a TextWrangler' | |
alias subedit='open -a Sublime\ Text' | |
alias sedit='sudo open -a TextEdit' | |
alias swedit='sudo open -a TextWrangler' | |
alias ssubedit='sudo open -a Sublime\ Text' | |
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" | |
# ------------------------------------------------------------------- | |
# Listen | |
# ------------------------------------------------------------------- | |
# Detect which `ls` flavor is in use | |
if ls --color > /dev/null 2>&1; then # GNU `ls` | |
colorflag="--color" | |
else # OS X `ls` | |
colorflag="-G" | |
fi | |
# List all files colorized in long format | |
alias l="ls -lF ${colorflag}" | |
# List all files colorized in long format, including dot files | |
alias la="ls -laF ${colorflag}" | |
# List only directories | |
alias lsd="ls -lF ${colorflag} | grep --color=never '^d'" | |
# Always use color output for `ls` | |
alias ls="command ls ${colorflag}" | |
export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:' | |
alias drives='df -h' | |
# ------------------------------------------------------------------- | |
# Ngrok | |
# ------------------------------------------------------------------- | |
alias ngrok='/www/ngrok/ngrok' | |
# ------------------------------------------------------------------- | |
# Port Listen | |
# ------------------------------------------------------------------- | |
alias listen="lsof -Pni4 | grep LISTEN" | |
# ------------------------------------------------------------------- | |
# Fun | |
# ------------------------------------------------------------------- | |
alias yolo='sudo $(fc -ln -1)' | |
# ------------------------------------------------------------------- | |
# Reload ZSH | |
# ------------------------------------------------------------------- | |
alias reload=". ~/.zshrc && echo 'ZSH config reloaded from ~/.zshrc'" | |
alias zshrc="subl ~/.zshrc && reload" | |
# ------------------------------------------------------------------- | |
# Edit SSH config | |
# ------------------------------------------------------------------- | |
alias sshconfig='subl ~/.ssh/config' | |
# ------------------------------------------------------------------- | |
# Edit Vicky .aliases | |
# ------------------------------------------------------------------- | |
alias vickyaliases='subl ~/.aliases' | |
# ------------------------------------------------------------------- | |
# fix_file_permissions | |
# ------------------------------------------------------------------- | |
alias fixpermissions='source /www/fix_file_permissions/fix_file_permissions.sh' | |
# ------------------------------------------------------------------- | |
# find PI | |
# ------------------------------------------------------------------- | |
alias findpi='arp -na | grep -i b8:27:eb' | |
# ------------------------------------------------------------------- | |
# fix Docker - PHP Xdebug | |
# ------------------------------------------------------------------- | |
alias fixxdebug='sudo ifconfig lo0 alias 10.200.10.1' | |
# ------------------------------------------------------------------- | |
# Clean GIT | |
# ------------------------------------------------------------------- | |
alias discardchanges='git clean -df && git checkout -- .' | |
# ------------------------------------------------------------------- | |
# DOCKER ENV | |
# ------------------------------------------------------------------- | |
alias ddrush_old='docker-compose run --rm drush' | |
# docker-localhost | |
alias localhost='cd /www/elalemanyo/github/docker-localhost' | |
alias localhost_up='cd /www/elalemanyo/github/docker-localhost && docker-compose up -d' | |
alias localhost_start='cd /www/elalemanyo/github/docker-localhost && docker-compose start' | |
alias localhost_stop='cd /www/elalemanyo/github/docker-localhost && docker-compose stop' | |
alias localhost_down='cd /www/elalemanyo/github/docker-localhost && docker-compose down' | |
alias localhost_restart='cd /www/elalemanyo/github/docker-localhost && docker-compose restart' | |
alias ddrush='docker-compose exec php drush --root=/var/www/html/drupal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment