47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
#
|
|
# aliases - Set whatever Zsh aliases you want.
|
|
#
|
|
|
|
# single character aliases - be sparing!
|
|
alias g=git
|
|
|
|
# mask built-ins with better defaults
|
|
alias vi=vim
|
|
|
|
# this one is kinda dangerous
|
|
alias rr="rm -rf"
|
|
|
|
# more ways to ls
|
|
alias ls="ls --group-directories-first --color=always"
|
|
alias l='ls -lh'
|
|
alias la='ls -a'
|
|
alias ldot='ls -ld .*'
|
|
alias lr='ls -R'
|
|
alias lsl="ls -lhFA --color=always | less"
|
|
alias left='ls -t -1'
|
|
|
|
# GNU make
|
|
alias mkrt='make -C $(git rev-parse --show-toplevel)'
|
|
alias mk="make"
|
|
alias mkc="make -C"
|
|
|
|
# url encode/decode
|
|
alias urldecode='python3 -c "import sys, urllib.parse as ul; \
|
|
print(ul.unquote_plus(sys.argv[1]))"'
|
|
alias urlencode='python3 -c "import sys, urllib.parse as ul; \
|
|
print (ul.quote_plus(sys.argv[1]))"'
|
|
|
|
# misc
|
|
alias zshrc='${EDITOR:-vim} "${ZDOTDIR:-$HOME}"/.zshrc'
|
|
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
|
|
alias zdot='cd ${ZDOTDIR:-~}'
|
|
|
|
# tmux
|
|
alias t-labbook="$DOTFILES_DIR/tmux/labbook.sh"
|
|
# source custom tmux.conf with older tmux
|
|
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
|
|
alias t='tmux'
|
|
alias tn='tmux new-session'
|
|
alias tl='tmux list-sessions'
|
|
|
|
|