2023-02-17 09:26:31 -06:00
alias g = git
alias vi = vim
alias rr = "rm -rf"
# more ways to ls
2023-12-15 09:12:43 -06:00
alias ls = " ${ aliases [ls] :- ls } --group-directories-first --color=auto -I 'System Volume Information' "
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] ) ) " '
2023-05-15 14:17:19 -05:00
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)'
2023-05-18 10:44:39 -05:00
alias dots-add= 'chezmoi re-add --interactive'
2023-05-15 14:17:19 -05:00
2023-06-09 08:47:18 -05:00
alias viv-remote= 'python3 <(curl -fsSL viv.dayl.in/viv.py)'
2023-05-28 16:22:33 -05:00
alias viv-dev= 'python3 <(curl -fsSL https://raw.githubusercontent.com/daylinmorgan/viv/dev/src/viv/viv.py)'
2023-08-25 09:20:52 -05:00
# increment a build number and maintain Lexicographic order
alias lexid-inc= "python -c \"import sys;build=(sys.argv[1] if len(sys.argv) ==2 else sys.exit('please provide number as input'));print((next if build[1] == (next:= str(int(build) + 1))[0] else f'{int(next[0])*11}{next[1:]}'))\""
2023-12-11 15:45:01 -06:00
alias task = "./do"
alias task = "./task"
alias t = "./task"
2024-01-08 17:07:54 -06:00
2024-02-15 11:27:24 -06:00
alias micromamba-fhs= "nix-shell -E 'with import <nixpkgs> {}; (pkgs.buildFHSUserEnv {name = \"micromamba-fhs\"; runScript=\"zsh\";}).env'"
2024-04-19 09:27:43 -05:00
alias fhs = "nix-shell -E 'with import <nixpkgs> {}; (pkgs.buildFHSUserEnv {name = \"micromamba-fhs\"; runScript=\"zsh\";}).env'"
# https://discourse.nixos.org/t/why-is-it-so-hard-to-use-a-python-package/19200/20
# alias fhs="nix shell --impure --expr '((builtins.getFlake \"nixpkgs\").legacyPackages.\${builtins.currentSystem}.buildFHSUserEnv { name = \"fhs\"; runScript=\"zsh\"; }).env'"