From 49ec72858ff16ee89fe1278795c0e7443e2bd236 Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr <50584123+Smirnov-O@users.noreply.github.com> Date: Thu, 19 Mar 2020 17:24:18 +0200 Subject: [PATCH] Update bashrc --- bashrc | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/bashrc b/bashrc index 1116f2f..752d5ca 100644 --- a/bashrc +++ b/bashrc @@ -1,25 +1,8 @@ -[ -z "$PS1" ] && return -shopt -s checkwinsize -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi -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 +export VISUAL="vim" +[[ $- != *i* ]] && return +alias ls='ls --color=auto' +PS1='\u@\h \W \$ ' +stty -ixon alias cls='clear' alias sl='ls'