Browse Source

bash: update

master
Maxim Likhachev 7 years ago
parent
commit
1d2bd4f96c
  1. 4
      etc/shell/bash/aliases
  2. 8
      etc/shell/bash/bashrc
  3. 27
      etc/shell/bash/inputrc
  4. 3
      etc/shell/bash/ls_colors_generator.py

4
etc/shell/bash/aliases

@ -50,13 +50,15 @@ alias dirs="dirs -v" #noindex @@ -50,13 +50,15 @@ alias dirs="dirs -v" #noindex
alias ping="pingp --nolegend" #noindex
alias gq="geeqie . &" #noindex
alias emerge="emerge --ask" #noindex
alias eww='emerge --update --newuse --deep --with-bdeps=y --complete-graph=y --keep-going=y -av -t @world' #noindex
alias xlock="i3lock -i $SHELLRC/etc/wm/locker.png" #noindex
#- Замена стандартных путей для конфигурационных файлов
alias mpd="mpd $SHELLRC/etc/media/mpd/mpd.conf" #noindex
alias mpdr="\mpd $SHELLRC/etc/media/mpd/mpd_remote.conf" #noindex
alias vim="vim -N -i $SHELLRC/var/vim/viminfo -p $*" #noindex
alias mutt="mutt -F $SHELLRC/etc/mail/mutt/muttrc && echo "0" > $MD/new" #noindex
alias lsi="TERM=xterm-256color lsi" #noindex
alias mutt="TERM=xterm-256color neomutt -F $SHELLRC/etc/mail/mutt/muttrc && echo "0" > $MD/new" #noindex
alias screen="TERM=rxvt-256color screen" #noindex
alias figlet="figlet -f $SHELLRC/etc/soft/figlet/fonts/standard.flf" #noindex
alias cdargs="cdargs -b -f $SHELLRC/etc/soft/cdargs/cdargs -o $SHELLRC/etc/soft/cdargs/cdargsresult" #noindex

8
etc/shell/bash/bashrc

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash ####################################################################
#
# Изменён: Чт 12 апр 2018 18:25:11
# Изменён: Ср 09 май 2018 00:40:39
#
################################################################################
@ -22,7 +22,8 @@ export STARDICT_DATA_DIR=$SHELLRC/etc/soft/sdcv/dictionaries/ @@ -22,7 +22,8 @@ export STARDICT_DATA_DIR=$SHELLRC/etc/soft/sdcv/dictionaries/
export SDCV_HISTSIZE=10000
#export SDCV_PAGER=less
export TERM=xterm
# export TERM=xterm
export TERM=xterm-256color
export GUILE_HISTORY="$SHELLRC/var/shell/guile.history" #История guile
export GUILE_AUTO_COMPILE=0 #Запрет на автокомпиляцию
@ -247,7 +248,8 @@ PS2="$green-> $rstc" @@ -247,7 +248,8 @@ PS2="$green-> $rstc"
PS3="$green+> $rstc"
PS4="$green++ $rstc"
PROMPT_COMMAND="history -a; history -n;"
# PROMPT_COMMAND="history -a; history -n;"
PROMPT_COMMAND="history -a;"
export CDPATH=".:~/FILES:~/FILES/Projects:~/Downloads"
export PROMPT_DIRTRIM=3 #В приглашении показывать 3 директории

27
etc/shell/bash/inputrc

@ -9,16 +9,14 @@ @@ -9,16 +9,14 @@
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
@ -45,14 +43,14 @@ set convert-meta Off @@ -45,14 +43,14 @@ set convert-meta Off
set output-meta On
#Горизонтальная сортировка автодополнения
#set print-completions-horizontally On
# set print-completions-horizontally On
set horizontal-scroll-mode On
#Игнорирование регистра при автодополнении
set completion-ignore-case On
#Возможность использовать маски
set glob-complete-word On
# set glob-complete-word On
#Автодополнение по одному нажатию <TAB>
set show-all-if-ambiguous On
@ -60,7 +58,7 @@ set show-all-if-ambiguous On @@ -60,7 +58,7 @@ set show-all-if-ambiguous On
#Запрашивать подтверждение на вывод автодополнения при >200 результатов
set completion-query-items 200
set show-all-symlinked-directories On
# set show-all-symlinked-directories On
#Автодополнение раскрывает тильду
set expand-tilde On
@ -78,12 +76,21 @@ set mark-modified-lines Off @@ -78,12 +76,21 @@ set mark-modified-lines Off
set match-hidden-files Off
#Дополнение из истории
set dabbrev-expand on
# set dabbrev-expand on
#Автоматическая подстановка директорий в cd
set autocd on
# set autocd on
set editing-mode vi
set keymap vi-command
set show-mode-in-prompt off
# Color files by types
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On

3
etc/shell/bash/ls_colors_generator.py

@ -17,13 +17,14 @@ def get_colors(): @@ -17,13 +17,14 @@ def get_colors():
# the character that must be printed before the filename in ls. The "other" argument denotes
# any escape codes to print after the main fg/bg sequence (e.g. bold, italic formatters).
# ^^cc is an alias for color_char.
# MISSING : color_char(232, 197,ord("?"),0),# A "missing" inode. Should be set to an error condition.
SPECIAL = {
NORMAL : "", # Should be left blank. Used as a fallback for everything else.
FILE : color_char(234,-1,0xE612,0), # Normal file, or one that does not have a color associated with it.
DIRECTORY : color_char(18,-1,0xE5FE,1), # A folder.
LINK : color_char(32,-1,0xF178,1), # Any kind of link.
ORPHAN : color_char(232, 197, 0xF12A,0), # An "orphaned" inode. Should be set to an error condition.
MISSING : color_char(232, 197,ord("?"),0),# A "missing" inode. Should be set to an error condition.
MISSING : color_char(9,-1,0xF668,0), # A "missing" inode. Should be set to an error condition.
PIPE : color_char(115,239,0xFCE3,0), # A named pipe.
SOCKET : color_char(140,-1,0xF135,0), # Honestly not sure what this is, so it must not appear much. Not needed probably.
BLOCKDEV : color_char(177,239,0xF069,0), # A block device (e.g. /dev/sda)

Loading…
Cancel
Save