Compare commits
10 Commits
db7a01f58e
...
109e1a3cf4
Author | SHA1 | Date | |
---|---|---|---|
109e1a3cf4 | |||
5ddad72e69 | |||
a9f4ac8d5d | |||
70f8090ec3 | |||
b4b145998a | |||
f5f78941c4 | |||
bdfbd4419b | |||
769d114c86 | |||
ba234a0dad | |||
70db551648 |
@ -62,7 +62,7 @@ esac
|
|||||||
|
|
||||||
# General
|
# General
|
||||||
# Get $HOME quick
|
# Get $HOME quick
|
||||||
alias ~='cd ~/'
|
alias ~='cd ~/;clear'
|
||||||
# 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,15 +113,18 @@ 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='docker image prune && docker network prune && docker container prune && docker volume prune'
|
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'
|
||||||
# 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'
|
||||||
@ -144,7 +147,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))"
|
||||||
|
Loading…
Reference in New Issue
Block a user