You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
761 B
Bash
24 lines
761 B
Bash
[ -d /etc/update-motd.d ] && run-parts /etc/update-motd.d
|
|
[ -r /etc/motd ] && cat /etc/motd
|
|
[ -r /etc/profile ] && source /etc/profile
|
|
[ -r /etc/bash.bashrc ] && source /etc/bash.bashrc
|
|
HISTCONTROL=ignoreboth
|
|
shopt -s histappend
|
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
|
alias ll='ls -alF'
|
|
alias la='ls -A'
|
|
alias l='ls -CF'
|
|
alias sl='ls'
|
|
[ -r /tmp/conf.d/screenrc ] && alias screen='screen -c /tmp/conf.d/screenrc'
|
|
[ -r /tmp/conf.d/vimrc ] && export VIMINIT="let \$MYVIMRC='/tmp/conf.d/vimrc' | source \$MYVIMRC"
|
|
PROMPT_COMMAND=__prompt_command
|
|
__prompt_command() {
|
|
local curr_exit="$?"
|
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
|
if [ "$curr_exit" != 0 ]; then
|
|
PS1="[$curr_exit]$PS1"
|
|
fi
|
|
}
|
|
set -o vi
|
|
EDITOR='vim'
|