Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (60 sloc) 1.67 KB
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Short prompt
PS1='\$ '
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
shopt -s globstar
# some more ls aliases
alias ll='ls -alF'
alias la='ls -AF'
alias l='ls -F'
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix
then . /etc/bash_completion
# Set the terminal title to user@host/dir
case "$TERM" in
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}${PWD}\007"'
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME}${PWD}\033\\"'
# night of the living ed
export EDITOR='rlfe ed -l'
alias e=$EDITOR
# Pithy dotenv loading in the shell
# Inspired by and
dotenv () {
if [ -e .env ]; then
while read line; do
export "$line"
done < .env
# Run dotenv on login
# Run dotenv on every new directory
cd () {
builtin cd $@
Jump to Line
Something went wrong with that request. Please try again.