Last active
July 21, 2017 21:19
-
-
Save sergiohidalgo/33ceb3bef49eddf60b3f19af4749a245 to your computer and use it in GitHub Desktop.
Alias para terminal
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
DOCKER_BIN='/mnt/c/Program Files/Docker/Docker/resources/bin' | |
for f in "$DOCKER_BIN"/*; do | |
alias "$(basename "$f" | sed 's/.exe$//')"'="'"$f"'"' | |
done | |
alias dev='~/Developer' | |
alias htdocs='/Applications/MAMP/htdocs' | |
alias ls -all='ls -GFlash' | |
alias valet-run='valet start && brew services start mysql' | |
alias valet-die='valet stop && brew services stop mysql' | |
alias valet-php7='brew unlink php56 && brew link php70 && valet stop && valet start && echo -e "\e[1;32m Valet run php 7.0 👽 \e[0m"' | |
alias valet-php5='brew unlink php70 && brew link php56 && valet stop && valet start && echo -e "\e[1;32m Valet run php 5.6 👽 \e[0m"' | |
export PATH=$PATH:~/.composer/vendor/bin | |
alias gs="git status" | |
alias gc="git commit -m" | |
alias glog="git log" | |
alias gco="git checkout" | |
alias pa="php artisan" | |
alias editalias="nano ~/aliases && source ~/aliases" | |
alias gpr="git pull --rebase" | |
function homestead() { | |
( cd ~/Homestead && vagrant $* ) | |
} | |
alias edithost="sudo subl /etc/hosts" | |
alias glog="git log --all --graph --pretty='format:%d %Cgreen%h%Creset %an - %s'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment