|
1
|
[ -z "$PS1" ] && return |
|
2
|
shopt -s checkwinsize |
|
3
|
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then |
|
4
|
debian_chroot=$(cat /etc/debian_chroot) |
|
5
|
fi |
|
6
|
if ! [ -n "${SUDO_USER}" -a -n "${SUDO_PS1}" ]; then |
|
7
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' |
|
8
|
fi |
|
9
|
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then |
|
10
|
function command_not_found_handle { |
|
11
|
if [ -x /usr/lib/command-not-found ]; then |
|
12
|
/usr/lib/command-not-found -- "$1" |
|
13
|
return $? |
|
14
|
elif [ -x /usr/share/command-not-found/command-not-found ]; then |
|
15
|
/usr/share/command-not-found/command-not-found -- "$1" |
|
16
|
return $? |
|
17
|
else |
|
18
|
printf "%s: command not found\n" "$1" >&2 |
|
19
|
return 127 |
|
20
|
fi |
|
21
|
} |
|
22
|
fi |
|
23
|
|
|
24
|
alias cls='clear' |
|
25
|
alias sl='ls' |
|
26
|
alias cd..='cd ..' |
|
27
|
alias py='python3' |
|
28
|
alias py3='python3' |
|
29
|
alias py2='python2' |