Created
July 9, 2019 19:01
-
-
Save amin3mej/e6542ae8ff2b6440d8a31f20f0387a7e to your computer and use it in GitHub Desktop.
My zsh config file
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
cdp () { | |
cd ~/Projects && cd $1 | |
} | |
dl (){ | |
aria2c -c -x16 -s16 $1 | |
} | |
alias c='sudo openconnect --cafile ~/cert/ca.crt --certificate ~/cert/dinner-loop.p12 --key-password 'YOUR PASSWORD' --pfs 11.22.33.44 -b --pid-file=$HOME/.openconnect.pid' | |
function dc() { | |
sudo kill -2 `cat "$HOME/.openconnect.pid"` && rm -f "$HOME/.openconnect.pid" | |
sleep 3 | |
sudo ifconfig en7 down | |
networksetup -setairportpower en0 off | |
sudo ifconfig en7 up | |
networksetup -setairportpower en0 on | |
} | |
alias ud='docker kill $(docker ps -q) && docker-compose -f docker-compose.dev.yml up -d' | |
alias ed='docker-compose -f docker-compose.dev.yml exec app bash -l' | |
alias sd='docker-compose -f docker-compose.dev.yml stop' | |
alias rl='react-native log-android' | |
alias rr='react-native run-android' | |
alias ri='react-native run-ios' | |
alias adbrev='adb reverse tcp:8081 tcp:8081' | |
alias code.="code ." | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
export PATH=$PATH:/Users/amin/development/flutter/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment