Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------------------------------
- # CUSTOM KV
- # -------------------------------
- goodMorningFunction() {
- echo '# pull all repos';
- for dir in ~/work/*; do (echo "Pulling "$dir; cd "$dir" && git pull); done
- echo '# update brew'
- brew update
- }
- alias dobrojutro=goodMorningFunction
- alias bashProfile='open -e .bash_profile'
- alias reloadBashProfile='source ~/.bash_profile'
- alias ..='cd ..'
- alias truba='ssh apps@truba.interaktivni-studio.com -i /Users/Karlo/work/karlo.pem'
- alias deghq='ssh apps@deghq.com -i /Users/Karlo/work/karlo.pem'
- alias apacheRestart='sudo httpd -k restart'
- alias edit="open -a TextWrangler $1"
- #SHOW/HIDE
- alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
- alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
- # -------------------------------
- # Shortcuts to directories
- # -------------------------------
- alias home='cd ~/'
- alias root='cd /'
- alias iapp='cd /Users/Karlo/work/iapp'
- alias work='cd /Users/Karlo/work'
- alias yapp='cd /Users/Karlo/work/yapp'
- alias dwp='cd /Users/Karlo/work/dwp'
- alias front='cd /Users/Karlo/work/front'
- # -------------------------------
- # ENVIRONMENT CONFIGURATION
- # -------------------------------
- alias restartApache='sudo httpd -k restart'
- # Change Prompt
- # ------------------------------------------------------------
- export PS1="________________________________________________________________________________\n| \w @ \h (\u) \n| => "
- export PS2="| => "
- # Set Paths
- # ------------------------------------------------------------
- export PATH="$PATH:/usr/local/bin/"
- export PATH="/usr/local/git/bin:/sw/bin/:/usr/local/bin:/usr/local/:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
- # Set Default Editor (change 'Nano' to the editor of your choice)
- # ------------------------------------------------------------
- export EDITOR=/usr/bin/nano
- # ---------------------------
- # NETWORKING
- # ---------------------------
- alias myip='curl ip.appspot.com' # myip: Public facing IP Address
- alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
- alias flushDNS='dscacheutil -flushcache' # flushDNS: Flush out the DNS Cache
- alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets
- alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
- alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
- alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0
- alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1
- alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
- alias showBlocked='sudo ipfw list' # showBlocked: All ipfw rules inc/ blocked IPs
- # ---------------------------
- # T
- # ---------------------------
- alias hosts='sudo nano /private/etc/hosts'
- alias vhosts='open -a TextWrangler.app /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf'
- alias edit='open -a TextWrangler $1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement