Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###===== ZSHRC =============================================================================
- ###=========================================================================================
- ##Tabela de cores
- fg_black=%{$'\e[0;30m'%}
- fg_red=%{$'\e[0;31m'%}
- fg_green=%{$'\e[0;32m'%}
- fg_brown=%{$'\e[0;33m'%}
- fg_blue=%{$'\e[0;34m'%}
- fg_purple=%{$'\e[0;35m'%}
- fg_cyan=%{$'\e[0;36m'%}
- fg_lgray=%{$'\e[0;37m'%}
- fg_dgray=%{$'\e[1;30m'%}
- fg_lred=%{$'\e[1;31m'%}
- fg_lgreen=%{$'\e[1;32m'%}
- fg_yellow=%{$'\e[1;33m'%}
- fg_lblue=%{$'\e[1;34m'%}
- fg_pink=%{$'\e[1;35m'%}
- fg_lcyan=%{$'\e[1;36m'%}
- fg_white=%{$'\e[1;37m'%}
- ###=========================================================================================
- ###=========================================================================================
- #Text Background Colors
- bg_red=%{$'\e[0;41m'%}
- bg_green=%{$'\e[0;42m'%}
- bg_brown=%{$'\e[0;43m'%}
- bg_blue=%{$'\e[0;44m'%}
- bg_purple=%{$'\e[0;45m'%}
- bg_cyan=%{$'\e[0;46m'%}
- bg_gray=%{$'\e[0;47m'%}
- #Attributes
- at_normal=%{$'\e[0m'%}
- at_bold=%{$'\e[1m'%}
- at_italics=%{$'\e[3m'%}
- at_underl=%{$'\e[4m'%}
- at_blink=%{$'\e[5m'%}
- at_outline=%{$'\e[6m'%}
- at_reverse=%{$'\e[7m'%}
- at_nondisp=%{$'\e[8m'%}
- at_strike=%{$'\e[9m'%}
- at_boldoff=%{$'\e[22m'%}
- at_italicsoff=%{$'\e[23m'%}
- at_underloff=%{$'\e[24m'%}
- at_blinkoff=%{$'\e[25m'%}
- at_reverseoff=%{$'\e[27m'%}
- at_strikeoff=%{$'\e[29m'%}
- ###=========================================================================================
- ###=========================================================================================
- ###=====ESTILO 1 ===========================================================================
- #PROMPT="
- #${fg_lgreen}%n@%m %{$fg_dgray%}%D{[%I:%M:%S]}${fg_white}[${fg_cyan}%~${fg_white}]
- #%{$fg_lblue%}->%{$fg_lblue%} %#% ${at_normal}"
- ###=========================================================================================
- ####======ESTILO 2 =========================================================================
- PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;30m%}%n%{\e[0;34m%}%B@%{\e[0m%}%{\e[1;30m%}%m%{\e[0;34m%}%B]%b%{\e[0;34m%}%B➫ %b%{\e[1;34m%}%B[%b%{\e[1;30m%}%~%{\e[0;34m%}%B]%b%{\e[0;34m%}%B➫ %{\e[0;34m%}%B[\e[0;33m%}%B'%D{"%A %d-%m-%Y %H:%M:%S"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
- %{\e[0;34m%}%B└─%B[%{\e[0;37m%}$%{\e[0;34m%}%B]%{\e[0;34m%}%B➫%{\e[0m%}%B % '
- PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
- ###=========================================================================================
- ####======ESTILO 3 =========================================================================
- #PROMPT="%{$fg_lblue%}❱%{$fg_lgreen%}❱%{$fg_lblue%}❱%{$fg_lgreen%}❱%{$fg_lblue%}❱ %f"
- #RPS1="%{$fg_lblue%}❰%{$fg_lgreen%}❰%{$fg_dgray%}%B%~%{$fg_lblue%}❱%{$fg_lgreen%}❱%{$at_normal%} %B"
- ###=========================================================================================
- ###=========================================================================================
- ## Lets set some options
- setopt correctall
- setopt autocd
- setopt auto_resume
- setopt extendedglob
- setopt completeinword
- unsetopt caseglob
- setopt CORRECT
- setopt ALWAYS_TO_END
- setopt NOTIFY
- setopt NOBEEP
- setopt AUTOLIST
- setopt PRINT_EIGHT_BIT
- ###=========================================================================================
- ###=========================================================================================
- ## Set some ZSH auto complete options
- zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
- zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
- zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd'
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
- zstyle ':completion:*:processes' command 'ps -au$USER'
- zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
- zstyle ':completion:*' completer _expand _complete _ignored
- zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
- zstyle ':completion:*' menu select=2
- zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
- ###=========================================================================================
- ###=========================================================================================
- ## History stuffs
- HISTFILE=~/.zsh-histfile
- HISTSIZE=5000
- SAVEHIST=5000
- setopt incappendhistory
- setopt sharehistory
- setopt extendedhistory
- ###=========================================================================================
- ###=========================================================================================
- ##ls, the common ones I use a lot shortened for rapid fire usage
- alias ls='ls --color' #I like color
- alias l='ls -lFh' #size,show type,human readable
- alias la='ls -lAFh' #long list,show almost all,show type,human readable
- alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
- alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
- ###=========================================================================================
- ###=========================================================================================
- ## cd, because typing the backslash is A LOT of work!!
- ## not needed due to ZSH autocd opt
- #alias .='cd ../'
- #alias ..='cd ../../'
- #alias ...='cd ../../../'
- #alias ....='cd ../../../../'
- ###=========================================================================================
- ###=========================================================================================
- autoload -U zutil
- autoload -U compinit
- autoload -U complist
- ###=========================================================================================
- ###=========================================================================================
- bindkey '\e[A' history-search-backward
- bindkey '\e[B' history-search-forward
- bindkey '^K' kill-whole-line
- bindkey "\e[H" beginning-of-line # Home (xorg)
- bindkey "\e[1~" beginning-of-line # Home (console)
- bindkey "\e[4~" end-of-line # End (console)
- bindkey "\e[F" end-of-line # End (xorg)
- bindkey "\e[2~" overwrite-mode # Ins
- bindkey "\e[3~" delete-char # Delete
- bindkey '\eOH' beginning-of-line
- bindkey '\eOF' end-of-line
- ###=========================================================================================
- ###=========================================================================================
- # Stupid Welcome intro.
- setterm -foreground red -bold on -term linux
- echo ' _ '
- echo ' °v° ** Bem-vindo ao Slackware **'
- echo ' /(_)\ '
- echo ' ^ ^ ' `date`
- echo ' '
- setterm -foreground green -bold on -term linux
- cal -3
- echo
- echo " " `uptime`
- echo
- echo
- ###=========================================================================================
- ###=========================================================================================
- # Teclado abnt-2 e Ctrl+Alt+Backspace.
- setxkbmap -model abnt2 -layout br -variant abnt2
- setxkbmap -option terminate:ctrl_alt_bksp
- ###=========================================================================================
- ###=========================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement