25 lines
586 B
Bash
25 lines
586 B
Bash
|
#
|
||
|
# ~/.bashrc
|
||
|
#
|
||
|
|
||
|
# If not running interactively, don't do anything
|
||
|
[[ $- != *i* ]] && return
|
||
|
|
||
|
#Change directories without using cd
|
||
|
shopt -s autocd
|
||
|
|
||
|
# Keep bash history in screen
|
||
|
export HISTFILE="${HISTFILE}${WINDOW:+.${WINDOW}}"
|
||
|
|
||
|
# load Aliases and functions
|
||
|
[[ -f ".bash_aliases" ]] && source .bash_aliases
|
||
|
[[ -f ".bash_functions" ]] && source .bash_functions
|
||
|
#Invironment variables
|
||
|
PS1='[\u@\h \W] \$ '
|
||
|
export DIALOGOPTS='--no-lines --visit-items'
|
||
|
GPG_TTY=$(tty)
|
||
|
export GPG_TTY
|
||
|
# Don't put commands prefixed with space, or duplicate commands in history
|
||
|
export HISTCONTROL=ignoreboth
|
||
|
|