Compare commits

..

No commits in common. "109e1a3cf4e3828ae1b03bb38d28deeb29fb935f" and "db7a01f58e5c557a32d5707aac53b27c9a6846de" have entirely different histories.

View File

@ -62,7 +62,7 @@ esac
# General # General
# Get $HOME quick # Get $HOME quick
alias ~='cd ~/;clear' alias ~='cd ~/'
# A Nice display of all files in a directory # A Nice display of all files in a directory
alias ll='ls -hog' alias ll='ls -hog'
# Above but...different I'm sure # Above but...different I'm sure
@ -72,7 +72,7 @@ alias lt='ls --human-readable --size -1 -S --classify'
# Grep command history fast-like # Grep command history fast-like
alias gh='history|grep' alias gh='history|grep'
# lol # lol
alias please='sudo !!' alias please='sudo'
# sometimes it feels good # sometimes it feels good
alias fucking='sudo' alias fucking='sudo'
# Install bat. It's better. # Install bat. It's better.
@ -113,18 +113,15 @@ alias doco="$DOCKER_COMPOSE_COMMAND"
alias redoco="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d" alias redoco="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d"
alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f" alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f" alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
alias watchtower="docker run -d --restart unless-stopped --name 'watch-$(date +%H%M)' -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower "
alias onetower="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once"
# Regain all that space taken up by projects you abandoned # Regain all that space taken up by projects you abandoned
alias docprune='echo "Pruning images"; docker image prune -f && echo "Pruning networks"; docker network prune -f && echo "Pruning containers"; docker container prune -f && echo "Pruning Volumes"; docker volume prune -f' alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
# Send things instantly to a pastebin. Pipe other commands into this to share their output. # Send things instantly to a pastebin. Pipe other commands into this to share their output.
alias bin='nc termbin.com 9999' alias bin='nc termbin.com 9999'
# Quicker Docker exec # Quicker Docker exec
alias dex='docker exec' alias dex='docker exec'
alias dps="docker ps --format 'CONTAINER ID: {{.ID}}\nIMAGE: {{.Image}}\nCOMMAND: {{.Command}}\nCREATED: {{.CreatedAt}}\nSTATUS: {{.Status}}\nPORTS: {{.Ports}}\nNAMES: {{.Names}}\n'|cat" alias dps="docker ps --format 'CONTAINER ID: {{.ID}}\nIMAGE: {{.Image}}\nCOMMAND: {{.Command}}\nCREATED: {{.CreatedAt}}\nSTATUS: {{.Status}}\nPORTS: {{.Ports}}\nNAMES: {{.Names}}\n'|cat"
alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/lzd:/.config/jesseduffield/lazydocker lazyteam/lazydocker' alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/lzd:/.config/jesseduffield/lazydocker lazyteam/lazydocker'
alias glance='docker run --rm -e TZ="${TZ}" -v /var/run/docker.sock:/var/run/docker.sock:ro -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro --pid host --network host -it nicolargo/glances:latest-full'
alias ytdlp='docker run --rm -v "/nasty/ytdl:/media" -it jauderho/yt-dlp:latest '
# Misc # Misc
# Get the weather. Put your location after the command # Get the weather. Put your location after the command
alias wttr='ansiweather -u imperial -s false -l' alias wttr='ansiweather -u imperial -s false -l'
@ -147,7 +144,7 @@ alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
alias hackingtool='docker run -it --net=host --security-opt seccomp=unconfined --privileged blackarchlinux/blackarch:latest' alias hackingtool='docker run -it --net=host --security-opt seccomp=unconfined --privileged blackarchlinux/blackarch:latest'
# Do you need to reboot? Find out here! # Do you need to reboot? Find out here!
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"' alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
alias gitgraph='git log --graph --oneline --decorate'
# Countdown Timer # Countdown Timer
countdown() { countdown() {
start="$(( $(date '+%s') + $1))" start="$(( $(date '+%s') + $1))"