Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ -z "$PS1" ] && return
- HISTSIZE=10000
- HISTFILESIZE=${HISTSIZE}
- HISTIGNORE="pwd:ls:ls -la:exit:bash:clear:cd:./configure:make:sudo make install:su:sudo su:editar_sources.list:sudo apt-get update:sudo apt-get update:sudo apt-get dist-upgrade:sudo apt-get autoclean:history:screenfetch:"
- HISTCONTROL=ignoredups
- HISTCONTROL=ignorespace
- HISTCONTROL=erasedups
- shopt -s histappend
- shopt -s checkwinsize
- [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
- if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
- fi
- case "$TERM" in
- xterm-color) color_prompt=yes;;
- esac
- force_color_prompt=yes
- if [ -n "$force_color_prompt" ]; then
- if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
- color_prompt=yes
- else
- color_prompt=
- fi
- fi
- if [ "$color_prompt" = yes ]; then
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- else
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
- fi
- unset color_prompt force_color_prompt
- case "$TERM" in
- xterm*|rxvt*)
- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
- ;;
- *)
- ;;
- esac
- if [ -x /usr/bin/dircolors ]; then
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
- alias ls='ls --color=auto'
- alias dir='dir --color=auto'
- alias vdir='vdir --color=auto'
- alias grep='grep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias egrep='egrep --color=auto'
- fi
- alias l='ls -CF'
- alias la='ls -ac --color=auto'
- alias ll='ls -lah --color=auto'
- alias lsd='ls -d */'
- alias lsg='ls --color=auto | g'
- alias lag='ls -a --color=auto | g'
- alias llg='ls -lah --color=auto | g'
- alias g="grep --color=always"
- alias gi="grep -i --color=always"
- alias mv='mv -i'
- alias cp='cp -i'
- alias rm='rm -i'
- alias rmf='rm -Rfvi'
- alias cpf='\cp -vi'
- alias mvf='\mv -vi'
- alias rmd='rm -Rfvi'
- alias psa='ps auxf'
- alias cal='echo -e "${CYAN}"; cal""'
- alias hist='history | g $1' # termo
- alias du='du -sh'
- alias dul='\du -h | less'
- alias df='df -h'
- alias nano='nano -w'
- alias nanob='nano -w -B'
- if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
- fi
- if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
- . /etc/bash_completion
- fi
- #
- echo ' _ '
- echo ' °v° ** Welcome to '`cat /etc/slackware-version`' **'
- echo ' /(_)\ '
- echo ' ^ ^ ' `date`
- echo ' '
- if [ "$(id -un)" == "root" ]; then
- PS1='\n\[\e[0;90m\][\h] [\[\e[0;33m\]\w\[\e[0;90m\]]\n\[\e[0;90m\][\[\e[0;31m\]\u\[\e[0;90m\]] >>\[\e[0m\] '
- PS2='\[\e[0;90m\][\[\e[0;31m\]\u\[\e[0;90m\]] >>\[\e[0m\] '
- else
- PS2='\[\e[0;90m\][\[\e[0;32m\]\u\[\e[0;90m\]] >>\[\e[0m\] '
- # PS1='\n\[\e[0;90m\][\h] [\[\e[0;33m\]\w\[\e[0;90m\]]$(__git_ps1 " [\[\e[0;34m\]%s\[\e[0;90m\]]")\n\[\e[0;90m\][\[\e[0;32m\]\u\[\e[0;90m\]] >>\[\e[0m\] '
- PS1='\n\[\e[0;90m\][\h] [\[\e[0;33m\]\w\[\e[0;90m\]]\n\[\e[0;90m\][\[\e[0;34m\]\u\[\e[0;90m\]] >>\[\e[0m\] '
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement