Skip to content

Instantly share code, notes, and snippets.

@levpa
Created October 7, 2024 12:18
Show Gist options
  • Save levpa/2c1a721065a643b88f463cda2c626e7d to your computer and use it in GitHub Desktop.
Save levpa/2c1a721065a643b88f463cda2c626e7d to your computer and use it in GitHub Desktop.
Aliases for .bashrc file, checked on executing
# aliases for devops tools
alias tf='terraform'
alias k='kubectl'
alias h='helm'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# 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$//'\'')"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment