2023-02-17 09:26:31 -06:00
alias g = git
2024-06-10 15:37:07 -05:00
alias c = clear
2023-02-17 09:26:31 -06:00
alias vi = vim
alias rr = "rm -rf"
2024-05-22 12:11:18 -05:00
# # more ways to ls
# alias ls="${aliases[ls]:-ls} --group-directories-first --color=auto -I 'System Volume Information'"
# 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'
#
2023-02-17 09:26:31 -06:00
# GNU make
alias mkrt = 'make -C $(git rev-parse --show-toplevel)'
alias mk = "make"
alias mkc = "make -C"
2024-06-10 14:52:09 -05:00
alias yyyymmdd = 'date +%Y%m%d'
alias ds = 'date +%Y-%m-%d'
alias ts = 'date +%Y-%m-%dT%H:%M:%SZ'
2024-06-10 15:37:07 -05:00
alias today = "date +'%Y.%m.%d'"
2024-06-10 14:52:09 -05:00
2023-02-17 09:26:31 -06:00
# 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-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'"