aliases.elv (4055B)
1 fn ls { |@rest| e:eza -a --sort=modified $@rest } 2 fn eza { |@rest| e:eza -a --sort=modified $@rest } 3 fn fd { |@rest| e:fd --color never --hidden --exclude .git --exclude $E:HOME/misc/mnt --exclude /nix $@rest } 4 fn rg { |@rest| e:rg --hidden -i $@rest } 5 fn vim { |@rest| e:nvim $@rest } 6 fn less { |@rest| e:less -R $@rest } 7 fn cp { |@rest| e:cp --backup=numbered --reflink=auto --sparse=always $@rest } 8 fn mv { |@rest| e:mv --backup=numbered $@rest } 9 fn ln { |@rest| e:ln --backup=numbered $@rest } 10 fn sudo { |@rest| e:sudo $@rest } 11 fn watch { |@rest| e:watch $@rest } 12 fn bazel { |@rest| e:bazelisk $@rest } 13 fn wl-copy { |@rest| e:wl-copy -n $@rest } 14 fn wl-paste { |@rest| e:wl-paste -n $@rest } 15 16 fn l { |@rest| ls $@rest } 17 fn la { |@rest| ls -a $@rest } 18 fn ll { |@rest| ls -l $@rest } 19 20 fn f { |@rest| magdalena look-file $@rest } 21 fn m { |@rest| mntmenu $@rest } 22 fn p { |@rest| pmn $@rest } 23 fn q { |@rest| sudo $@rest } 24 25 fn tst { |@rest| e:tmux set status $@rest } 26 fn tls { e:tmux list-sessions } 27 fn tms { e:tmux display-message -p '#{session_name}' } 28 29 fn mgr { |@rest| magdalena grep $@rest } 30 fn mrd { magdalena recent-dirs } 31 fn mrf { magdalena recent-files } 32 33 fn alt { |@rest| aaltomuoto $@rest } 34 fn vrt { |@rest| virittaa $@rest } 35 fn hkn { |@rest| hakuna $@rest } 36 37 fn mach { |@rest| matcha $@rest } 38 fn machp { |@rest| matcha --playlist $@rest } 39 40 fn duh { |@rest| du -hs $@rest } 41 fn dfh { df -h } 42 43 fn lopri { |@rest| nice -n 19 ionice -c2 -n7 $@rest } 44 45 fn pps { podman ps } 46 fn plo { |@rest| podman logs $@rest } 47 fn pst { podman stats } 48 fn pbu { |@rest| podman build $@rest } 49 fn pcu { |@rest| podman-compose up $@rest } 50 fn pcd { |@rest| podman-compose down $@rest } 51 fn pcs { |@rest| podman-compose stop $@rest } 52 53 fn mpva { |@rest| mpv --no-video $@rest } 54 fn pp { mpc toggle } 55 fn qq { mpc playlist } 56 fn mpa { |@rest| mpc add $@rest } 57 58 fn n { |@rest| nota $@rest } 59 fn no { |@rest| nota $@rest } 60 fn to { nota today } 61 fn ye { nota yesterday } 62 fn tom { nota tomorrow } 63 fn todo { nota todo } 64 fn wish { nota wishlist } 65 66 fn kat { |@rest| khal at $@rest } 67 fn khi { khal interactive } 68 fn khl { |@rest| khal list $@rest } 69 fn khlw { khal list now 7d } 70 71 fn bpp { backup -t git:pass -p } 72 fn bnp { backup -t git:nota -p } 73 fn brr { backup -t git:releases -p } 74 75 fn nr { newsraft } 76 fn nre { e:nvim ~/src/sr.ht/nix/modules/mixins/dotfiles/config/newsraft/feeds } 77 78 fn cbd { |@rest| cargo build $@rest } 79 fn cbr { |@rest| cargo build --release $@rest } 80 fn cip { |@rest| cargo install --path $@rest } 81 fn cup { |@rest| cargo update --recursive $@rest } 82 83 fn ap { |@rest| ansible-playbook --diff $@rest } 84 fn apc { |@rest| ansible-playbook --check --diff $@rest } 85 86 fn nd { |@rest| nix develop $@rest } 87 fn hms { just --justfile ~/src/sr.ht/nix/justfile home } 88 fn hmd { just --justfile ~/src/sr.ht/nix/justfile diff } 89 fn nmdr { just --justfile ~/src/sr.ht/nix/justfile diffr } 90 fn ndpj { just --justfile ~/src/sr.ht/nix/justfile deploy } 91 92 fn ju { |@rest| just $@rest } 93 fn rnj { just run } 94 fn dfj { just diff } 95 fn chj { just check } 96 fn bdj { just build } 97 fn dpj { just deploy } 98 99 fn amsp { mpv --no-video https://radio.stereoscenic.com/asp-s --no-resume-playback } 100 fn nts1 { mpv --no-video https://stream-relay-geo.ntslive.net/stream --no-resume-playback } 101 fn nts2 { mpv --no-video https://stream-relay-geo.ntslive.net/stream2 --no-resume-playback } 102 103 fn mf { monofetch } 104 fn sr { |@rest| speedread -w 400 $@rest } 105 fn jlr { |@rest| jless --mode line $@rest } 106 107 fn chop { perl -pe chop } 108 fn chomp { perl -pe chomp } 109 110 fn bexec { |@rest| bundle exec $@rest } 111 fn brake { |@rest| bexec rake $@rest } 112 113 fn chav { |@rest| cha --visual $@rest } 114 fn pwc { pwd | wl-copy -n } 115 116 fn tt { rg -N -B 1 "^todo:" ~/.nb/notes/todo.txt } 117 fn tn { todo-notify } 118 119 fn tww { |channel| e:mpv https://twitch.tv/$channel --no-terminal --no-resume-playback & } 120 121 fn dmesg { e:dmesg -T --color=always | e:less -R +G } 122 fn ncdu { e:sudo ncdu -x --exclude /nix --exclude $E:HOME/misc/mnt / } 123 fn gdb { |@rest| e:gdb -q $@rest } 124 fn ipython { |@rest| e:ipython --no-banner $@rest }