dotfiles/home/private_dot_config/zsh/conf.d/aliases.zsh

42 lines
1.1 KiB
Bash
Raw Normal View History

2023-02-17 09:26:31 -06:00
#
# 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
2023-02-28 12:08:36 -06:00
alias ls="${aliases[ls]:-ls} --group-directories-first --color=auto"
2023-02-17 09:26:31 -06:00
alias l='ls -lh'
2023-02-20 10:10:52 -06:00
alias la='ls -a'
2023-02-17 09:26:31 -06:00
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]))"'
alias rclone='rclone --filter-from ~/.config/rclone/filter-file.txt'
2023-02-17 09:26:31 -06:00
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
alias zdot='cd ${ZDOTDIR:-~}'
2023-02-23 14:30:40 -06:00
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
alias today="date +'%Y-%m-%d'"
2023-05-10 01:00:17 -05:00
alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf)'