Skip to content

Instantly share code, notes, and snippets.

@JSchulte01
Last active January 10, 2019 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JSchulte01/d106ebcf4abc6df25828edbcc62f7d12 to your computer and use it in GitHub Desktop.
Save JSchulte01/d106ebcf4abc6df25828edbcc62f7d12 to your computer and use it in GitHub Desktop.
Template of some useful setup for BashRC
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
alias q='exit'
alias c='clear'
alias h='history'
alias cs='clear;ls'
alias p='cat'
alias pd='pwd'
alias lsa='ls -a'
alias lsl='ls -l'
alias pd='pwd'
alias t='time'
alias k='kill'
alias null='/dev/null'
alias fuck='sudo $(history -p !!)'
alias copy='xclip -sel clip'
alias home='cd ~'
alias root='cd /'
alias work='cd ~/Work'
alias dtop='cd ~/Desktop'
alias ..='cd ..'
alias o='xdg-open'
# Let there be color in grep!
alias grep="grep --color=auto"
alias g='git'
alias gg='git grep -n'
alias pc='pycharm-community . &'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment