Skip to content

Instantly share code, notes, and snippets.

@jessuppi
Created November 21, 2019 20:55
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 jessuppi/170863da79df70a97395c9bc0de974db to your computer and use it in GitHub Desktop.
Save jessuppi/170863da79df70a97395c9bc0de974db to your computer and use it in GitHub Desktop.
Useful Bash Script Functions (Command Aliases)
## critical functions (aliases) for this script to function ##
apt () { command DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" "$@"; }
wget () { command wget --no-check-certificate --no-cache --no-cookies --tries=3 --timeout=15 "$@"; }
cp () { command cp -R -f -d --no-preserve=mode,ownership "$@"; }
rm () { command rm -R -f "$@"; }
mkdir () { command mkdir -p "$@"; }
unzip () { command unzip -o "$@"; }
@jessuppi
Copy link
Author

Reserve first comment

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