dotfiles/roles/zsh/files/.zsh/configs/aliases.zsh

33 lines
774 B
Bash
Raw Normal View History

2020-05-11 19:20:50 +00:00
alias c="clear"
2019-02-21 01:54:00 +00:00
alias l="ls -lah"
2020-01-15 02:26:59 +00:00
# Open the current directory in Finder.
2019-04-01 09:13:55 +00:00
alias o="open ."
2019-04-10 09:52:03 +00:00
alias hosts="sudo vim /etc/hosts"
2019-04-01 09:13:12 +00:00
alias sshconfig='vim ~/.ssh/config'
2020-01-14 14:57:48 +00:00
2020-01-15 02:26:59 +00:00
# Pretty print the path.
2019-10-06 01:12:06 +00:00
alias path='echo $PATH | tr -s ":" "\n"'
2019-04-10 09:52:03 +00:00
2020-01-15 02:26:59 +00:00
# Open the current directory in PhpStorm.
# Open the current directory in Sublime Text.
2019-04-28 21:20:26 +00:00
alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"'
2020-01-14 14:57:48 +00:00
2020-01-15 02:26:59 +00:00
# Allow for pasting lines of code that start with a dollar sign.
alias \$=''
2020-11-11 11:37:38 +00:00
# Re-implement pbcopy and pbpaste from macOS.
alias pbcopy="xclip -selection clipboard"
alias pbpaste="xclip -selection clipboard -o"
2019-10-06 01:12:24 +00:00
# Include custom aliases
if [[ -f ~/.aliases.local ]]; then
source ~/.aliases.local
fi
# Open directory aliases
if [[ -f $(pwd)/.aliases ]]; then
source $(pwd)/.aliases
fi