2016-10-15 19:31:55 +02:00
|
|
|
#!/usr/bin/env bash
|
2016-05-07 20:56:50 +02:00
|
|
|
|
|
|
|
# some more ls aliases
|
|
|
|
alias ll='ls -alF'
|
|
|
|
alias la='ls -A'
|
|
|
|
alias l='ls -CF'
|
|
|
|
|
|
|
|
# Easier navigation: .., ..., ~
|
|
|
|
alias ..="cd .."
|
|
|
|
alias ...="cd ../.."
|
|
|
|
alias ~="cd ~"
|
|
|
|
|
|
|
|
# Update All The Things
|
2017-05-26 00:22:46 +02:00
|
|
|
alias update='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get clean && sudo apt-get autoremove'
|
2016-05-07 20:56:50 +02:00
|
|
|
|
|
|
|
# Copy public key to pasteboard
|
|
|
|
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '=> Public key copied to pasteboard.\n'"
|
|
|
|
|
|
|
|
# When there's need for nyaning around
|
|
|
|
alias nyan="telnet nyancat.dakko.us"
|
2016-05-07 21:40:49 +02:00
|
|
|
|
|
|
|
# Add an "alert" alias for long running commands. Use like so:
|
|
|
|
# sleep 10; alert
|
|
|
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
2019-10-27 01:56:26 +02:00
|
|
|
|
|
|
|
# Docker & Docker Compose
|
|
|
|
alias dc="docker-compose"
|