Jafner.net/dotfiles/.aliases
Joey Hafner 97e4cc547a
Init Jafner.net monorepo from constituent repos:
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting).
   - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`?
2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev).
3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles).
4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm)
5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi)
6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd)
7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash)
8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it).
9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB)
10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker)
11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
2024-07-15 15:35:16 -07:00

37 lines
1.3 KiB
Plaintext

# Aliases
alias ls='ls --color'
# extract a video from a clip without transcoding
# takes `--start <timestamp in hh:mm:ss>
# --duration <seconds>
# --file '<path to file>'
alias clip='~/Nextcloud/Dotfiles/Fedora/clip.sh'
# kills all processes related to lutris. must be adapted if steam is used instead
alias gamescopereset='kill $(ps aux | grep lutris | tr -s " " | cut -d" " -f 2)'
# restarts applications which break when pulseaudio devices restart
alias audiofix='systemctl --user restart pipewire-pulse.service'
# Get the size of a remote git repository as quickly as possible.
git-getsize() {
echo "Cloning with --no-checkout ... "
git clone --no-checkout "$1" && cd "$(basename "$_" .git)"
echo "Size of LFS objects:"
git lfs ls-files -s | cut -d' ' -f4-5
if ! [ -z ${cleanup+x} ]; then
unset cleanup
fi
while [ -z ${cleanup+x} ]; do
read -p "Clean up the git repo? [y/n]: " yn
case $yn in
[Yy]*) cleanup=0 ;;
[Nn]*) cleanup=1 ;;
*) echo "Enter y or n" ;;
esac
done
}
# The jot command works like:
# jot 'Some note I would quickly take'
function jot () { if [ -z "$@" ]; then echo -e "Usage: jot 'Some note to take'\nRemember to use single quotes"; else echo "$@" | sed -e 's/^/- /' >> ~/Documents/Notes/Daily/$(date +%Y_%m_%d).md; fi }