1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-25 19:47:36 +01:00
dotfiles/aliases

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2016-10-14 21:59:34 +02:00
#!/usr/bin/env bash
# ----------------------------------------------------------------------
# ALIASES
# ----------------------------------------------------------------------
alias ll='ls -la'
2015-01-13 16:26:46 +01:00
# Easier navigation: .., ..., ~
alias ..="cd .."
alias ...="cd ../.."
alias ~="cd ~"
2017-05-19 15:56:40 +02:00
alias a='atom-beta .'
2017-08-14 15:34:52 +02:00
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
alias s='subl .'
# Update All The Things
2014-11-03 17:40:13 +01:00
alias update='update-everything.sh'
2015-01-13 16:26:46 +01:00
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en1"
# Copy SSH public key to pasteboard
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '$(tput setaf 64)✓ Public SSH key copied to pasteboard.$(tput sgr0)\n'"
# Copy GPG public key to pasteboard
alias gpgpubkey="gpg --export --armor 0xDD7831FC | pbcopy | printf '$(tput setaf 64)✓ Public GPG key copied to pasteboard.$(tput sgr0)\n'"
2015-01-13 16:26:46 +01:00
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
2014-05-23 16:34:51 +02:00
# Empty the Trash on all mounted volumes and the main HDD
# Also, clear Apples System Logs to improve shell startup speed
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool TRUE && killall Finder"
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool FALSE && killall Finder"
2015-06-18 00:43:54 +02:00
# When there's need for nyaning around
alias nyan="telnet nyancat.dakko.us"