mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update bashrc
This commit is contained in:
parent
ba110c57d5
commit
49ec72858f
1 changed files with 5 additions and 22 deletions
27
bashrc
27
bashrc
|
|
@ -1,25 +1,8 @@
|
||||||
[ -z "$PS1" ] && return
|
export VISUAL="vim"
|
||||||
shopt -s checkwinsize
|
[[ $- != *i* ]] && return
|
||||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
alias ls='ls --color=auto'
|
||||||
debian_chroot=$(cat /etc/debian_chroot)
|
PS1='\u@\h \W \$ '
|
||||||
fi
|
stty -ixon
|
||||||
if ! [ -n "${SUDO_USER}" -a -n "${SUDO_PS1}" ]; then
|
|
||||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
|
||||||
fi
|
|
||||||
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
|
|
||||||
function command_not_found_handle {
|
|
||||||
if [ -x /usr/lib/command-not-found ]; then
|
|
||||||
/usr/lib/command-not-found -- "$1"
|
|
||||||
return $?
|
|
||||||
elif [ -x /usr/share/command-not-found/command-not-found ]; then
|
|
||||||
/usr/share/command-not-found/command-not-found -- "$1"
|
|
||||||
return $?
|
|
||||||
else
|
|
||||||
printf "%s: command not found\n" "$1" >&2
|
|
||||||
return 127
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
alias cls='clear'
|
alias cls='clear'
|
||||||
alias sl='ls'
|
alias sl='ls'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue