Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/toolbox/assets/profile.d/aliases.sh
2021-03-27 18:35:37 +01:00

38 lines
817 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# Shortcuts
alias g="git"
alias h="history"
alias k="kubectl"
# Always use color output for `ls`
# And sort directories before files
alias ls="ls --color --group-directories-first"
# ls abbreviation
alias l="ls -l"
alias ll="ls -l"
alias la="ls -la"
# Always enable colored `grep` output
alias grep='grep --color=auto '
# Enable aliases to be sudoed
alias sudo='sudo '
# Canonical hex dump some systems have this symlinked
command -v hd > /dev/null || alias hd="hexdump -C"
# vi == vim
alias vi='vim'
# Passwort erstellen
alias mkpasswd='openssl rand -base64 40 | cut -c1-40'