Skip to content

Instantly share code, notes, and snippets.

@je55ek
Created November 15, 2018 03:17
Show Gist options
  • Save je55ek/39581e9c40fc4cc3e7355cee16ec2a32 to your computer and use it in GitHub Desktop.
Save je55ek/39581e9c40fc4cc3e7355cee16ec2a32 to your computer and use it in GitHub Desktop.
Parts of my .bashrc common across all systems
# Use vim keybindings and vim as default editor
set -o vi
export EDITOR=vim
# Nice terminal with colors
export PS1="\e[0;34m\w\$ \e[m"
alias ls='ls -G'
export LS_COLORS='di=92:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
# Change directory and then list directory contents
function cls ()
{
cd $1 ; ls
}
# Clear screen, then change directory and list contents
ca ()
{
clear ; cls $1
}
alias rm='rm -vi'
alias gla='git log --graph --oneline --all'
alias glaa='git log --all --graph --date=short --format="%Creset%C(yellow)%h %C(blue bold)%ad%Creset%C(auto)%d %Creset%s %C(blue)[%aN]"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment