# ~/.bashrc: executed by bash(1) for non-login shells
# Gibson Terminal Configuration
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# History settings
HISTCONTROL=ignoreboth:erasedups
HISTSIZE=31337
HISTFILESIZE=31337
shopt -s histappend
shopt -s checkwinsize
# Core aliases
alias ll='ls -alF --color=auto'
alias la='ls -A --color=auto'
alias l='ls -CF --color=auto'
alias ls='ls --color=auto'
alias ..='cd ..'
alias ...='cd ../..'
alias grep='grep --color=auto'
# Safety aliases
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Git shortcuts
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gl='git log --oneline'
alias gd='git diff'
# Development shortcuts
alias py='python3'
alias serve='python3 -m http.server 8000'
# Fun stuff
alias hack='echo "Access Granted. Welcome to the Gibson."'
alias gibson='echo "Hack the Planet!"'
# Custom prompt with git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='\[\033[01;32m\]\u@gibson\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ '
# Environment variables
export EDITOR=vim
export PAGER=less
echo "The Gibson awaits... Happy hacking!"
BACK TO FILE MANAGER BACK TO MAIN MENU