Skip to content

Instantly share code, notes, and snippets.

@lstellway
Last active April 16, 2020 17:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lstellway/7a73027a388490a728a650c8aee65beb to your computer and use it in GitHub Desktop.
Save lstellway/7a73027a388490a728a650c8aee65beb to your computer and use it in GitHub Desktop.
# Aliases
alias c="clear"
alias ll="ls -lah"
alias lz="ls -laZ" # include (selinux) security context in listing
alias cl="c && ll"
alias ..="cd .."
# Empty contents of files
empty() {
for arg in "$@"
do
cat /dev/null > "$arg"
done
}
@lstellway
Copy link
Author

lstellway commented Apr 16, 2020

# For pasting into a terminal session
alias c="clear"
alias ll="ls -lah"
alias lz="ls -laZ"
alias cl="c && ll"
alias ..="cd .."
alias empty="cat /cev/null >"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment