skynet/zsh/zalias-borges

40 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2023-04-06 10:44:47 -05:00
#!/usr/bin/env zsh
2023-04-14 15:51:28 -05:00
# path aliases
2023-04-06 10:44:47 -05:00
hash -d r2=/mnt/external/rudism
hash -d api=/home/rudism/mri/cosmic/api
hash -d gql=/home/rudism/mri/cosmic/graphql-server
2023-06-19 15:46:25 -05:00
hash -d as2=/home/rudism/mri/appdat/as2
2023-11-06 13:26:22 -06:00
hash -d oot=/home/rudism/mri/cosmic/nasa/oot/api
2024-04-05 12:24:01 -05:00
hash -d risk=/home/rudism/mri/cosmic/nasa/risk/api
2024-05-15 13:34:29 -05:00
hash -d og=/home/rudism/mri/cosmic/nasa/og
hash -d schema=/home/rudism/mri/cosmic/api-schema
2023-04-06 10:44:47 -05:00
hash -d a=/mnt/agrajag
hash -d b=/mnt/beeblebrox
2024-05-22 11:47:13 -05:00
hash -d c=/mnt/constantmown
2023-04-14 15:51:28 -05:00
# command aliases
alias nasavpn='/home/rudism/src/nasavpn/nasavpn'
alias dockerrm='docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker system prune -f'
alias webcamfix='sudo modprobe v4l2loopback devices=1 video_nr=9 card_label=VirtualCam exclusive_caps=1 && ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -input_format mjpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video9; sudo rmmod v4l2loopback'
2024-11-20 08:08:55 -06:00
alias syncmusic='rsync -av --size-only --times --no-perms --no-owner --no-group --delete /mnt/agrajag/music/ /mnt/usb/Music'
2023-04-28 10:59:33 -05:00
alias watchsync='watch -d grep -e Dirty: -e Writeback: /proc/meminfo'
2024-05-15 13:34:29 -05:00
alias localai='COMPOSE_FILE=~/.local/share/local-ai/docker-compose.yaml docker compose up -d --force-recreate'
2024-05-22 17:23:26 -05:00
alias win='dbus-run-session sway --unsupported-gpu'
alias transcrilium='/home/rudism/src/transcrilium/transcrilium /mnt/usb/PRIVATE/SONY/REC_FILE/Voice\ Notes01'
2024-10-22 06:44:26 -05:00
alias clearb="printf '\033[2J\033[3J\033[1;1H'"
2024-11-20 08:08:55 -06:00
alias airplay="pactl unload-module module-raop-discover; pactl load-module module-raop-discover"
2024-05-15 13:34:29 -05:00
# llm aliases that use aichat
if command -v aichat >/dev/null; then
alias ask='f() { echo "$@" | aichat };f'
alias define='f() { echo "briefly define $1" | aichat };f'
alias synonym='f() { echo "list some synonyms of $1" | aichat };f'
fi
2023-06-19 15:46:25 -05:00
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/rudism/.local/share/google-cloud-sdk/path.zsh.inc' ]; then . '/home/rudism/.local/share/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/rudism/.local/share/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/rudism/.local/share/google-cloud-sdk/completion.zsh.inc'; fi