Skip to content

Instantly share code, notes, and snippets.

@MrChrisWeinert
Last active October 5, 2020 13:18
Show Gist options
  • Save MrChrisWeinert/ff390d9c649a9e4703bedfffd735b6ff to your computer and use it in GitHub Desktop.
Save MrChrisWeinert/ff390d9c649a9e4703bedfffd735b6ff to your computer and use it in GitHub Desktop.
The start of some stuff I usually do for a new linux install
apt-get -y update
#Terminator console emulator
apt-get -y install terminator
apt-get -y install bat
#Setup custom aliases
echo "alias ll='ls -l'" > .bash_aliases
echo "alias nmap='nmap -g53 --randomize-hosts --script-args http.useragent=\"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0i\" '" >> .bash_aliases
echo "alias cat='bat --style=grid'" >> .bash_aliases
echo "alias myip='curl ifconfig.me/ip'" >> .bash_aliases
source .bashrc
##This stuff also goes into the .bashrc
#export HISTCONTROL=ignoredups:erasedups # no duplicate entries
#export HISTSIZE=100000 # big big history
#export HISTFILESIZE=100000 # big big history
#shopt -s histappend # append to history, don't overwrite it
## Save and reload the history after each command finishes
#export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment