Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b27c2b67c |
No files matched your search
@@ -1,139 +0,0 @@
|
|||||||
#
|
|
||||||
# ~/.bashrc
|
|
||||||
#
|
|
||||||
|
|
||||||
[[ $- != *i* ]] && return
|
|
||||||
|
|
||||||
colors() {
|
|
||||||
local fgc bgc vals seq0
|
|
||||||
|
|
||||||
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
|
|
||||||
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
|
|
||||||
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
|
|
||||||
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
|
|
||||||
|
|
||||||
# foreground colors
|
|
||||||
for fgc in {30..37}; do
|
|
||||||
# background colors
|
|
||||||
for bgc in {40..47}; do
|
|
||||||
fgc=${fgc#37} # white
|
|
||||||
bgc=${bgc#40} # black
|
|
||||||
|
|
||||||
vals="${fgc:+$fgc;}${bgc}"
|
|
||||||
vals=${vals%%;}
|
|
||||||
|
|
||||||
seq0="${vals:+\e[${vals}m}"
|
|
||||||
printf " %-9s" "${seq0:-(default)}"
|
|
||||||
printf " ${seq0}TEXT\e[m"
|
|
||||||
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
|
|
||||||
done
|
|
||||||
echo; echo
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
|
||||||
|
|
||||||
# Change the window title of X terminals
|
|
||||||
case ${TERM} in
|
|
||||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
|
||||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
|
||||||
;;
|
|
||||||
screen*)
|
|
||||||
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
use_color=true
|
|
||||||
|
|
||||||
# Set colorful PS1 only on colorful terminals.
|
|
||||||
# dircolors --print-database uses its own built-in database
|
|
||||||
# instead of using /etc/DIR_COLORS. Try to use the external file
|
|
||||||
# first to take advantage of user additions. Use internal bash
|
|
||||||
# globbing instead of external grep binary.
|
|
||||||
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
|
|
||||||
match_lhs=""
|
|
||||||
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
|
|
||||||
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
|
|
||||||
[[ -z ${match_lhs} ]] \
|
|
||||||
&& type -P dircolors >/dev/null \
|
|
||||||
&& match_lhs=$(dircolors --print-database)
|
|
||||||
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
|
||||||
|
|
||||||
if ${use_color} ; then
|
|
||||||
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
|
||||||
if type -P dircolors >/dev/null ; then
|
|
||||||
if [[ -f ~/.dir_colors ]] ; then
|
|
||||||
eval $(dircolors -b ~/.dir_colors)
|
|
||||||
elif [[ -f /etc/DIR_COLORS ]] ; then
|
|
||||||
eval $(dircolors -b /etc/DIR_COLORS)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${EUID} == 0 ]] ; then
|
|
||||||
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
|
||||||
else
|
|
||||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
|
||||||
fi
|
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --colour=auto'
|
|
||||||
alias egrep='egrep --colour=auto'
|
|
||||||
alias fgrep='fgrep --colour=auto'
|
|
||||||
else
|
|
||||||
if [[ ${EUID} == 0 ]] ; then
|
|
||||||
# show root@ when we don't have colors
|
|
||||||
PS1='\u@\h \W \$ '
|
|
||||||
else
|
|
||||||
PS1='\u@\h \w \$ '
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset use_color safe_term match_lhs sh
|
|
||||||
|
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
|
||||||
alias df='df -h' # human-readable sizes
|
|
||||||
alias free='free -m' # show sizes in MB
|
|
||||||
alias np='nano -w PKGBUILD'
|
|
||||||
alias more=less
|
|
||||||
|
|
||||||
xhost +local:root > /dev/null 2>&1
|
|
||||||
|
|
||||||
complete -cf sudo
|
|
||||||
|
|
||||||
# Bash won't get SIGWINCH if another process is in the foreground.
|
|
||||||
# Enable checkwinsize so that bash will check the terminal size when
|
|
||||||
# it regains control. #65623
|
|
||||||
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
|
||||||
shopt -s checkwinsize
|
|
||||||
|
|
||||||
shopt -s expand_aliases
|
|
||||||
|
|
||||||
# export QT_SELECT=4
|
|
||||||
|
|
||||||
# Enable history appending instead of overwriting. #139609
|
|
||||||
shopt -s histappend
|
|
||||||
|
|
||||||
#
|
|
||||||
# # ex - archive extractor
|
|
||||||
# # usage: ex <file>
|
|
||||||
ex ()
|
|
||||||
{
|
|
||||||
if [ -f $1 ] ; then
|
|
||||||
case $1 in
|
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
|
||||||
*.tar.gz) tar xzf $1 ;;
|
|
||||||
*.bz2) bunzip2 $1 ;;
|
|
||||||
*.rar) unrar x $1 ;;
|
|
||||||
*.gz) gunzip $1 ;;
|
|
||||||
*.tar) tar xf $1 ;;
|
|
||||||
*.tbz2) tar xjf $1 ;;
|
|
||||||
*.tgz) tar xzf $1 ;;
|
|
||||||
*.zip) unzip $1 ;;
|
|
||||||
*.Z) uncompress $1;;
|
|
||||||
*.7z) 7z x $1 ;;
|
|
||||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo "'$1' is not a valid file"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
@@ -1,276 +0,0 @@
|
|||||||
" Vim color file
|
|
||||||
"
|
|
||||||
" Author: Tomas Restrepo <tomas@winterdom.com>
|
|
||||||
" https://github.com/tomasr/molokai
|
|
||||||
"
|
|
||||||
" Note: Based on the Monokai theme for TextMate
|
|
||||||
" by Wimer Hazenberg and its darker variant
|
|
||||||
" by Hamish Stuart Macpherson
|
|
||||||
"
|
|
||||||
|
|
||||||
hi clear
|
|
||||||
|
|
||||||
if version > 580
|
|
||||||
" no guarantees for version 5.8 and below, but this makes it stop
|
|
||||||
" complaining
|
|
||||||
hi clear
|
|
||||||
if exists("syntax_on")
|
|
||||||
syntax reset
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
let g:colors_name="molokai"
|
|
||||||
|
|
||||||
if exists("g:molokai_original")
|
|
||||||
let s:molokai_original = g:molokai_original
|
|
||||||
else
|
|
||||||
let s:molokai_original = 0
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
hi Boolean guifg=#AE81FF
|
|
||||||
hi Character guifg=#E6DB74
|
|
||||||
hi Number guifg=#AE81FF
|
|
||||||
hi String guifg=#E6DB74
|
|
||||||
hi Conditional guifg=#F92672 gui=bold
|
|
||||||
hi Constant guifg=#AE81FF gui=bold
|
|
||||||
hi Cursor guifg=#000000 guibg=#F8F8F0
|
|
||||||
hi iCursor guifg=#000000 guibg=#F8F8F0
|
|
||||||
hi Debug guifg=#BCA3A3 gui=bold
|
|
||||||
hi Define guifg=#66D9EF
|
|
||||||
hi Delimiter guifg=#8F8F8F
|
|
||||||
hi DiffAdd guibg=#13354A
|
|
||||||
hi DiffChange guifg=#89807D guibg=#4C4745
|
|
||||||
hi DiffDelete guifg=#960050 guibg=#1E0010
|
|
||||||
hi DiffText guibg=#4C4745 gui=italic,bold
|
|
||||||
|
|
||||||
hi Directory guifg=#A6E22E gui=bold
|
|
||||||
hi Error guifg=#E6DB74 guibg=#1E0010
|
|
||||||
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
|
|
||||||
hi Exception guifg=#A6E22E gui=bold
|
|
||||||
hi Float guifg=#AE81FF
|
|
||||||
hi FoldColumn guifg=#465457 guibg=#000000
|
|
||||||
hi Folded guifg=#465457 guibg=#000000
|
|
||||||
hi Function guifg=#A6E22E
|
|
||||||
hi Identifier guifg=#FD971F
|
|
||||||
hi Ignore guifg=#808080 guibg=bg
|
|
||||||
hi IncSearch guifg=#C4BE89 guibg=#000000
|
|
||||||
|
|
||||||
hi Keyword guifg=#F92672 gui=bold
|
|
||||||
hi Label guifg=#E6DB74 gui=none
|
|
||||||
hi Macro guifg=#C4BE89 gui=italic
|
|
||||||
hi SpecialKey guifg=#66D9EF gui=italic
|
|
||||||
|
|
||||||
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
|
|
||||||
hi ModeMsg guifg=#E6DB74
|
|
||||||
hi MoreMsg guifg=#E6DB74
|
|
||||||
hi Operator guifg=#F92672
|
|
||||||
|
|
||||||
" complete menu
|
|
||||||
hi Pmenu guifg=#66D9EF guibg=#000000
|
|
||||||
hi PmenuSel guibg=#808080
|
|
||||||
hi PmenuSbar guibg=#080808
|
|
||||||
hi PmenuThumb guifg=#66D9EF
|
|
||||||
|
|
||||||
hi PreCondit guifg=#A6E22E gui=bold
|
|
||||||
hi PreProc guifg=#A6E22E
|
|
||||||
hi Question guifg=#66D9EF
|
|
||||||
hi Repeat guifg=#F92672 gui=bold
|
|
||||||
hi Search guifg=#000000 guibg=#FFE792
|
|
||||||
" marks
|
|
||||||
hi SignColumn guifg=#A6E22E guibg=#232526
|
|
||||||
hi SpecialChar guifg=#F92672 gui=bold
|
|
||||||
hi SpecialComment guifg=#7E8E91 gui=bold
|
|
||||||
hi Special guifg=#66D9EF guibg=bg gui=italic
|
|
||||||
if has("spell")
|
|
||||||
hi SpellBad guisp=#FF0000 gui=undercurl
|
|
||||||
hi SpellCap guisp=#7070F0 gui=undercurl
|
|
||||||
hi SpellLocal guisp=#70F0F0 gui=undercurl
|
|
||||||
hi SpellRare guisp=#FFFFFF gui=undercurl
|
|
||||||
endif
|
|
||||||
hi Statement guifg=#F92672 gui=bold
|
|
||||||
hi StatusLine guifg=#455354 guibg=fg
|
|
||||||
hi StatusLineNC guifg=#808080 guibg=#080808
|
|
||||||
hi StorageClass guifg=#FD971F gui=italic
|
|
||||||
hi Structure guifg=#66D9EF
|
|
||||||
hi Tag guifg=#F92672 gui=italic
|
|
||||||
hi Title guifg=#ef5939
|
|
||||||
hi Todo guifg=#FFFFFF guibg=bg gui=bold
|
|
||||||
|
|
||||||
hi Typedef guifg=#66D9EF
|
|
||||||
hi Type guifg=#66D9EF gui=none
|
|
||||||
hi Underlined guifg=#808080 gui=underline
|
|
||||||
|
|
||||||
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
|
|
||||||
hi VisualNOS guibg=#403D3D
|
|
||||||
hi Visual guibg=#403D3D
|
|
||||||
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
|
|
||||||
hi WildMenu guifg=#66D9EF guibg=#000000
|
|
||||||
|
|
||||||
hi TabLineFill guifg=#1B1D1E guibg=#1B1D1E
|
|
||||||
hi TabLine guibg=#1B1D1E guifg=#808080 gui=none
|
|
||||||
|
|
||||||
if s:molokai_original == 1
|
|
||||||
hi Normal guifg=#F8F8F2 guibg=#272822
|
|
||||||
hi Comment guifg=#75715E
|
|
||||||
hi CursorLine guibg=#3E3D32
|
|
||||||
hi CursorLineNr guifg=#FD971F gui=none
|
|
||||||
hi CursorColumn guibg=#3E3D32
|
|
||||||
hi ColorColumn guibg=#3B3A32
|
|
||||||
hi LineNr guifg=#BCBCBC guibg=#3B3A32
|
|
||||||
hi NonText guifg=#75715E
|
|
||||||
hi SpecialKey guifg=#75715E
|
|
||||||
else
|
|
||||||
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
|
|
||||||
hi Comment guifg=#7E8E91
|
|
||||||
hi CursorLine guibg=#293739
|
|
||||||
hi CursorLineNr guifg=#FD971F gui=none
|
|
||||||
hi CursorColumn guibg=#293739
|
|
||||||
hi ColorColumn guibg=#232526
|
|
||||||
hi LineNr guifg=#465457 guibg=#232526
|
|
||||||
hi NonText guifg=#465457
|
|
||||||
hi SpecialKey guifg=#465457
|
|
||||||
end
|
|
||||||
|
|
||||||
"
|
|
||||||
" Support for 256-color terminal
|
|
||||||
"
|
|
||||||
if &t_Co > 255
|
|
||||||
if s:molokai_original == 1
|
|
||||||
hi Normal ctermbg=234
|
|
||||||
hi CursorLine ctermbg=235 cterm=none
|
|
||||||
hi CursorLineNr ctermfg=208 cterm=none
|
|
||||||
else
|
|
||||||
hi Normal ctermfg=252 ctermbg=233
|
|
||||||
hi CursorLine ctermbg=234 cterm=none
|
|
||||||
hi CursorLineNr ctermfg=208 cterm=none
|
|
||||||
endif
|
|
||||||
hi Boolean ctermfg=135
|
|
||||||
hi Character ctermfg=144
|
|
||||||
hi Number ctermfg=135
|
|
||||||
hi String ctermfg=144
|
|
||||||
hi Conditional ctermfg=161 cterm=bold
|
|
||||||
hi Constant ctermfg=135 cterm=bold
|
|
||||||
hi Cursor ctermfg=16 ctermbg=253
|
|
||||||
hi Debug ctermfg=225 cterm=bold
|
|
||||||
hi Define ctermfg=81
|
|
||||||
hi Delimiter ctermfg=241
|
|
||||||
|
|
||||||
hi DiffAdd ctermbg=24
|
|
||||||
hi DiffChange ctermfg=181 ctermbg=239
|
|
||||||
hi DiffDelete ctermfg=162 ctermbg=53
|
|
||||||
hi DiffText ctermbg=102 cterm=bold
|
|
||||||
|
|
||||||
hi Directory ctermfg=118 cterm=bold
|
|
||||||
hi Error ctermfg=219 ctermbg=89
|
|
||||||
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
|
|
||||||
hi Exception ctermfg=118 cterm=bold
|
|
||||||
hi Float ctermfg=135
|
|
||||||
hi FoldColumn ctermfg=67 ctermbg=16
|
|
||||||
hi Folded ctermfg=67 ctermbg=16
|
|
||||||
hi Function ctermfg=118
|
|
||||||
hi Identifier ctermfg=208 cterm=none
|
|
||||||
hi Ignore ctermfg=244 ctermbg=232
|
|
||||||
hi IncSearch ctermfg=193 ctermbg=16
|
|
||||||
|
|
||||||
hi keyword ctermfg=161 cterm=bold
|
|
||||||
hi Label ctermfg=229 cterm=none
|
|
||||||
hi Macro ctermfg=193
|
|
||||||
hi SpecialKey ctermfg=81
|
|
||||||
|
|
||||||
hi MatchParen ctermfg=233 ctermbg=208 cterm=bold
|
|
||||||
hi ModeMsg ctermfg=229
|
|
||||||
hi MoreMsg ctermfg=229
|
|
||||||
hi Operator ctermfg=161
|
|
||||||
|
|
||||||
" complete menu
|
|
||||||
hi Pmenu ctermfg=81 ctermbg=16
|
|
||||||
hi PmenuSel ctermfg=255 ctermbg=242
|
|
||||||
hi PmenuSbar ctermbg=232
|
|
||||||
hi PmenuThumb ctermfg=81
|
|
||||||
|
|
||||||
hi PreCondit ctermfg=118 cterm=bold
|
|
||||||
hi PreProc ctermfg=118
|
|
||||||
hi Question ctermfg=81
|
|
||||||
hi Repeat ctermfg=161 cterm=bold
|
|
||||||
hi Search ctermfg=0 ctermbg=222 cterm=NONE
|
|
||||||
|
|
||||||
" marks column
|
|
||||||
hi SignColumn ctermfg=118 ctermbg=235
|
|
||||||
hi SpecialChar ctermfg=161 cterm=bold
|
|
||||||
hi SpecialComment ctermfg=245 cterm=bold
|
|
||||||
hi Special ctermfg=81
|
|
||||||
if has("spell")
|
|
||||||
hi SpellBad ctermbg=52
|
|
||||||
hi SpellCap ctermbg=17
|
|
||||||
hi SpellLocal ctermbg=17
|
|
||||||
hi SpellRare ctermfg=none ctermbg=none cterm=reverse
|
|
||||||
endif
|
|
||||||
hi Statement ctermfg=161 cterm=bold
|
|
||||||
hi StatusLine ctermfg=238 ctermbg=253
|
|
||||||
hi StatusLineNC ctermfg=244 ctermbg=232
|
|
||||||
hi StorageClass ctermfg=208
|
|
||||||
hi Structure ctermfg=81
|
|
||||||
hi Tag ctermfg=161
|
|
||||||
hi Title ctermfg=166
|
|
||||||
hi Todo ctermfg=231 ctermbg=232 cterm=bold
|
|
||||||
|
|
||||||
hi Typedef ctermfg=81
|
|
||||||
hi Type ctermfg=81 cterm=none
|
|
||||||
hi Underlined ctermfg=244 cterm=underline
|
|
||||||
|
|
||||||
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
|
|
||||||
hi VisualNOS ctermbg=238
|
|
||||||
hi Visual ctermbg=235
|
|
||||||
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
|
|
||||||
hi WildMenu ctermfg=81 ctermbg=16
|
|
||||||
|
|
||||||
hi Comment ctermfg=59
|
|
||||||
hi CursorColumn ctermbg=236
|
|
||||||
hi ColorColumn ctermbg=236
|
|
||||||
hi LineNr ctermfg=250 ctermbg=236
|
|
||||||
hi NonText ctermfg=59
|
|
||||||
|
|
||||||
hi SpecialKey ctermfg=59
|
|
||||||
|
|
||||||
if exists("g:rehash256") && g:rehash256 == 1
|
|
||||||
hi Normal ctermfg=252 ctermbg=234
|
|
||||||
hi CursorLine ctermbg=236 cterm=none
|
|
||||||
hi CursorLineNr ctermfg=208 cterm=none
|
|
||||||
|
|
||||||
hi Boolean ctermfg=141
|
|
||||||
hi Character ctermfg=222
|
|
||||||
hi Number ctermfg=141
|
|
||||||
hi String ctermfg=222
|
|
||||||
hi Conditional ctermfg=197 cterm=bold
|
|
||||||
hi Constant ctermfg=141 cterm=bold
|
|
||||||
|
|
||||||
hi DiffDelete ctermfg=125 ctermbg=233
|
|
||||||
|
|
||||||
hi Directory ctermfg=154 cterm=bold
|
|
||||||
hi Error ctermfg=222 ctermbg=233
|
|
||||||
hi Exception ctermfg=154 cterm=bold
|
|
||||||
hi Float ctermfg=141
|
|
||||||
hi Function ctermfg=154
|
|
||||||
hi Identifier ctermfg=208
|
|
||||||
|
|
||||||
hi Keyword ctermfg=197 cterm=bold
|
|
||||||
hi Operator ctermfg=197
|
|
||||||
hi PreCondit ctermfg=154 cterm=bold
|
|
||||||
hi PreProc ctermfg=154
|
|
||||||
hi Repeat ctermfg=197 cterm=bold
|
|
||||||
|
|
||||||
hi Statement ctermfg=197 cterm=bold
|
|
||||||
hi Tag ctermfg=197
|
|
||||||
hi Title ctermfg=203
|
|
||||||
hi Visual ctermbg=238
|
|
||||||
|
|
||||||
hi Comment ctermfg=244
|
|
||||||
hi LineNr ctermfg=239 ctermbg=235
|
|
||||||
hi NonText ctermfg=239
|
|
||||||
hi SpecialKey ctermfg=239
|
|
||||||
endif
|
|
||||||
end
|
|
||||||
|
|
||||||
" Must be at the end, because of ctermbg=234 bug.
|
|
||||||
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ
|
|
||||||
set background=dark
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
" Vim color file
|
|
||||||
" Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration)
|
|
||||||
|
|
||||||
set background=dark
|
|
||||||
highlight clear
|
|
||||||
|
|
||||||
if exists("syntax_on")
|
|
||||||
syntax reset
|
|
||||||
endif
|
|
||||||
|
|
||||||
set t_Co=256
|
|
||||||
let g:colors_name = "monokai"
|
|
||||||
|
|
||||||
hi Cursor ctermfg=235 ctermbg=231 cterm=NONE guifg=#272822 guibg=#f8f8f0 gui=NONE
|
|
||||||
hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
|
|
||||||
hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
|
|
||||||
hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
|
|
||||||
hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
|
|
||||||
hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE
|
|
||||||
hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE
|
|
||||||
hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline
|
|
||||||
hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold
|
|
||||||
hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE
|
|
||||||
hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
|
|
||||||
hi IncSearch term=reverse cterm=reverse ctermfg=193 ctermbg=16 gui=reverse guifg=#C4BE89 guibg=#000000
|
|
||||||
hi Search term=reverse cterm=NONE ctermfg=231 ctermbg=24 gui=NONE guifg=#f8f8f2 guibg=#204a87
|
|
||||||
hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE
|
|
||||||
hi SignColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
|
|
||||||
hi Normal ctermfg=231 ctermbg=235 cterm=NONE guifg=#f8f8f2 guibg=#272822 gui=NONE
|
|
||||||
hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
|
|
||||||
hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold
|
|
||||||
hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE
|
|
||||||
hi DiffChange ctermfg=NONE ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE
|
|
||||||
hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold
|
|
||||||
hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
|
|
||||||
hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
|
|
||||||
hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi Function ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
|
|
||||||
hi Keyword ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi NonText ctermfg=59 ctermbg=236 cterm=NONE guifg=#49483e guibg=#31322c gui=NONE
|
|
||||||
hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi Operator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi PreProc ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE
|
|
||||||
hi SpecialComment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
|
|
||||||
hi SpecialKey ctermfg=59 ctermbg=237 cterm=NONE guifg=#49483e guibg=#3c3d37 gui=NONE
|
|
||||||
hi Statement ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
|
|
||||||
hi String ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi Tag ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold
|
|
||||||
hi Todo ctermfg=95 ctermbg=NONE cterm=inverse,bold guifg=#75715e guibg=NONE gui=inverse,bold
|
|
||||||
hi Type ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
|
|
||||||
hi rubyClass ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi rubyFunction ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
|
|
||||||
hi rubyStringDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi rubyBlockParameter ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
|
|
||||||
hi rubyInstanceVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi rubyInclude ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi rubyRegexp ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi rubyRegexpDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi rubyControl ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi rubyOperator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi rubyException ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
|
|
||||||
hi rubyRailsARAssociationMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi rubyRailsARMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi rubyRailsRenderMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi rubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi erubyComment ctermfg=95 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
|
|
||||||
hi erubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi htmlTag ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi htmlEndTag ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi javaScriptFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
|
|
||||||
hi javaScriptRailsFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi yamlKey ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
|
|
||||||
hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
hi yamlDocumentHeader ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
|
|
||||||
hi cssURL ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
|
|
||||||
hi cssFunctionName ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi cssPseudoClassId ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi cssClassName ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
|
|
||||||
hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
|
|
||||||
hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
|
|
||||||
hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
|
|
||||||
Whitespace-only changes.
@@ -1,30 +0,0 @@
|
|||||||
require("plugins")
|
|
||||||
require("keybinds")
|
|
||||||
-- GENERAL SETTINGS
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
vim.cmd('colorscheme monokai') -- set colorscheme
|
|
||||||
vim.o.syntax = 'on'
|
|
||||||
vim.o.errorbells = false
|
|
||||||
vim.o.smartcase = true
|
|
||||||
vim.o.showmode = true
|
|
||||||
vim.o.ignorecase = true -- case-insensitive search
|
|
||||||
vim.bo.swapfile = false
|
|
||||||
vim.o.backup = false
|
|
||||||
vim.o.undodir = vim.fn.stdpath('config') .. '/undodir'
|
|
||||||
vim.o.undofile = true
|
|
||||||
vim.o.incsearch = true
|
|
||||||
vim.o.hidden = true
|
|
||||||
vim.o.completeopt='menuone,noinsert,noselect'
|
|
||||||
vim.bo.autoindent = true
|
|
||||||
vim.bo.smartindent = true
|
|
||||||
vim.o.tabstop = 2
|
|
||||||
vim.o.softtabstop = 2
|
|
||||||
vim.o.shiftwidth = 2
|
|
||||||
vim.o.expandtab = true
|
|
||||||
vim.wo.number = true
|
|
||||||
vim.wo.relativenumber = true
|
|
||||||
vim.o.scrolloff = 8
|
|
||||||
vim.wo.signcolumn = 'yes'
|
|
||||||
vim.wo.wrap = false
|
|
||||||
vim.opt.cursorline = true
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
-- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on'
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
-- INSTALL PACKER PLUGINS https://github.com/wbthomason/packer.nvim#bootstrapping
|
|
||||||
local vim = vim
|
|
||||||
local execute = vim.api.nvim_command
|
|
||||||
local fn = vim.fn
|
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
|
||||||
execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
|
|
||||||
execute 'packadd packer.nvim'
|
|
||||||
end
|
|
||||||
vim.cmd('packadd packer.nvim')
|
|
||||||
local packer = require'packer'
|
|
||||||
local util = require'packer.util'
|
|
||||||
packer.init({
|
|
||||||
package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack')
|
|
||||||
})
|
|
||||||
--- startup and add configure plugins
|
|
||||||
packer.startup(function()
|
|
||||||
local use = use
|
|
||||||
use 'neovim/nvim-lspconfig'
|
|
||||||
use 'nvim-treesitter/nvim-treesitter'
|
|
||||||
end
|
|
||||||
)
|
|
||||||
--[[ PLUGIN CONFIGURATION
|
|
||||||
local configs = require'nvim-treesitter.configs'
|
|
||||||
configs.setup {
|
|
||||||
ensure_installed = "maintained",
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]]--
|
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#CONFIGURATION
|
|
||||||
set-option -g prefix C-a # rebind tmux prefix to CTRL + a because vim uses default CTRL + b
|
|
||||||
bind-key C-a last-window # double-press of CTRL + a (tmux prefix) switches to previous window
|
|
||||||
set-window-option -g mode-keys vi # vi mode
|
|
||||||
set-option -g allow-rename off # dont rename windows on command execution TODO fix
|
|
||||||
set -s escape-time 0 # dont delay escape key in vim
|
|
||||||
set -g base-index 1 # start windows numbering at 1
|
|
||||||
|
|
||||||
#COLORS
|
|
||||||
set -g default-terminal "screen-256color" # use default terminal colors
|
|
||||||
set-option -g pane-border-style fg=white
|
|
||||||
set-option -g pane-active-border-style fg=green
|
|
||||||
set-option -g message-style bg=green,fg=black
|
|
||||||
|
|
||||||
#STATUSBAR
|
|
||||||
set -g status-position bottom
|
|
||||||
set -g status-left ""
|
|
||||||
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}#{=21:pane_title}"
|
|
||||||
set -g status-style fg=black,bg=red # color for the statusbar
|
|
||||||
set-window-option -g window-status-current-style fg=green,bg=black # color for the current window (tab)
|
|
||||||
Whitespace-only changes.
@@ -1,155 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
#OPTIONS SECTION
|
|
||||||
|
|
||||||
#unsetopt beep # try disabling annoying beep sounds
|
|
||||||
setopt nobeep
|
|
||||||
xset b off
|
|
||||||
autoload -Uz compinit # load completion
|
|
||||||
compinit
|
|
||||||
_comp_options+=(globdots) # Include hidden files.
|
|
||||||
setopt autocd # allow cd by only entering directory without cd command
|
|
||||||
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
|
||||||
setopt correct # Auto correct mistakes
|
|
||||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
|
||||||
setopt appendhistory # Immediately append history instead of overwriting
|
|
||||||
HISTFILE=~/.history
|
|
||||||
|
|
||||||
zstyle ':completion:*' special-dirs true # complete hidden directories
|
|
||||||
zstyle ':completion:*' special-files true # complete hidden files
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion
|
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
|
|
||||||
zstyle ':completion:*' menu select # enable navigable menu for completion
|
|
||||||
zstyle ':completion:*' rehash true # Automatically update PATH entries
|
|
||||||
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' # Smart matching of dashed values, e.g. f-b matching foo-bar
|
|
||||||
zstyle ':completion:*' group-name '' # Group results by category
|
|
||||||
zstyle ':completion:*' insert-tab false # Don't insert a literal tab when trying to complete in an empty buffer
|
|
||||||
zstyle ':completion:*' completer _complete _ignored _correct _approximate # Enable approximate completions
|
|
||||||
zstyle ':completion:*' verbose true # Verbose completion results
|
|
||||||
#zstyle ':completion:*' show-completer true
|
|
||||||
#zstyle ':completion:*' matcher-list 'r:|[._-'\''"`´,;:]=** r:|=**'
|
|
||||||
#zstyle ':completion:*' original true
|
|
||||||
#zstyle :compinstall filename '/home/en/.zshrc'
|
|
||||||
# Show message while waiting for completion
|
|
||||||
|
|
||||||
# Pretty messages during pagination
|
|
||||||
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
|
|
||||||
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
|
|
||||||
|
|
||||||
# Nicer format for completion messages
|
|
||||||
#zstyle ':completion:*:descriptions' format '%U%B%d%b%u' #shows categories of commands like "built-in" and "external"
|
|
||||||
#zstyle ':completion:*:corrections' format '%U%F{green}%d (errors: %e)%f%u'
|
|
||||||
#zstyle ':completion:*:warnings' format '%F{202}%BSorry, no matches for: %F{214}%d%b'
|
|
||||||
|
|
||||||
# Prettier completion for processes
|
|
||||||
#zstyle ':completion:*:*:*:*:processes' force-list always
|
|
||||||
zstyle ':completion:*:*:*:*:processes' menu yes select
|
|
||||||
zstyle ':completion:*:*:*:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
|
||||||
zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,args -w -w"
|
|
||||||
|
|
||||||
|
|
||||||
autoload -Uz bracketed-paste-magic # allow links to be read without escaping
|
|
||||||
zle -N bracketed-paste bracketed-paste-magic
|
|
||||||
autoload -Uz url-quote-magic
|
|
||||||
zle -N self-insert url-quote-magic
|
|
||||||
|
|
||||||
WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider certain characters part of the word
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ALIAS SECTION
|
|
||||||
|
|
||||||
alias ls='ls -hN --group-directories-first --color=auto' # make output more readable and show directories first
|
|
||||||
alias grep='grep --color=auto' # colorize grep output, set GREP_COLORS
|
|
||||||
alias cp="cp -i" # Confirm before overwriting something
|
|
||||||
alias df='df -h' # Human-readable sizes
|
|
||||||
alias free='free -m'
|
|
||||||
alias vi='nvim' # Show sizes in MB
|
|
||||||
alias ll='ls -l'
|
|
||||||
alias la='ls --almost-all'
|
|
||||||
alias r='R'
|
|
||||||
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
|
||||||
alias notify='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
|
||||||
#Add a "dotfiles" alias for .dotfile git repo
|
|
||||||
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
||||||
#alias 'dotfiles-update'='dotfiles commit -a && dotfiles push'
|
|
||||||
|
|
||||||
|
|
||||||
#KEYBINDINGS SECTION (use 'cat -v' or 'od -c' to see raw keyboard output)
|
|
||||||
|
|
||||||
bindkey -e # use emacs key layout
|
|
||||||
bindkey '^[[1;5D' backward-word # 'CTRL + leftarrow'
|
|
||||||
bindkey '^[[1;5C' forward-word # 'CTRL + rightarrow'
|
|
||||||
bindkey '^H' backward-kill-word # delete previous word with ctrl+backspace
|
|
||||||
bindkey '^[[3~' delete-char # enable delete key
|
|
||||||
bindkey '^[[3;5~' kill-word # 'CTRL + DEL'
|
|
||||||
bindkey '^Z' undo # 'CTRL + z' undo last action
|
|
||||||
|
|
||||||
|
|
||||||
#PLUGIN SECTION
|
|
||||||
|
|
||||||
if [[ -x /usr/lib/command-not-found ]] ; then # try loading suggestions to install when command was not found
|
|
||||||
function command_not_found_handler() {
|
|
||||||
/usr/lib/command-not-found --no-failure-msg -- $1
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme # load theme
|
|
||||||
#source /usr/share/doc/find-the-command/ftc.zsh quiet # load command not found, might need `systemctl enable pacman-files.timer`
|
|
||||||
|
|
||||||
#source /usr/share/zsh/plugins/zsh-background-notify/bgnotify.plugin.zsh # load notifications for long comands, customize message?
|
|
||||||
#bgnotify_threshold=4
|
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # load syntax highlighting, everything except autosuggestions should be loaded before this
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
|
||||||
ZSH_HIGHLIGHT_STYLES[default]=none
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=009,standout
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[alias]=fg=white,bold
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[builtin]=fg=white,bold
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[function]=fg=white,bold
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[command]=fg=white,bold
|
|
||||||
ZSH_HIGHLIGHT_STYLES[precommand]=fg=#eaff00,bold
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[commandseparator]=none
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[hashed-command]=fg=009
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[path]=fg=214,underline
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[globbing]=fg=063
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=white,underline
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=none
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=none
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=063
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=063
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=009
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=009
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[assign]=none
|
|
||||||
|
|
||||||
[[ ! -f "$ZDOTDIR/p10k.zsh" ]] || source "$ZDOTDIR/p10k.zsh" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
||||||
|
|
||||||
|
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # load fish-completion, needs to be sourced after syntax highlighting
|
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#737373,bg=translucent"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#random stuff
|
|
||||||
|
|
||||||
#zstyle ':completion:*' completer _complete _ignored _correct _approximate
|
|
||||||
#zstyle ':completion:*' matcher-list 'r:|[._-'\''"`´,;:]=** r:|=**'
|
|
||||||
#zstyle ':completion:*' original true
|
|
||||||
|
|
||||||
#zstyle :compinstall filename '/home/en/.zshrc'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if [[ -f ~/.dircolors ]] ; then
|
|
||||||
# eval $(dircolors -b ~/.dircolors)
|
|
||||||
#elif [[ -f /etc/DIR_COLORS ]] ; then
|
|
||||||
# eval $(dircolors -b /etc/DIR_COLORS)
|
|
||||||
#fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
File diff suppressed because it is too large.
Load diff
-243
@@ -1,243 +0,0 @@
|
|||||||
# Configuration file for dircolors, a utility to help you set the
|
|
||||||
# LS_COLORS environment variable used by GNU ls with the --color option.
|
|
||||||
|
|
||||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
|
||||||
# Copying and distribution of this file, with or without modification,
|
|
||||||
# are permitted provided the copyright notice and this notice are preserved.
|
|
||||||
|
|
||||||
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
|
||||||
# slackware version of dircolors) are recognized but ignored.
|
|
||||||
|
|
||||||
# You can copy this file to .dir_colors in your $HOME directory to override
|
|
||||||
# the system defaults.
|
|
||||||
|
|
||||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
|
||||||
TERM Eterm
|
|
||||||
TERM ansi
|
|
||||||
TERM color-xterm
|
|
||||||
TERM con132x25
|
|
||||||
TERM con132x30
|
|
||||||
TERM con132x43
|
|
||||||
TERM con132x60
|
|
||||||
TERM con80x25
|
|
||||||
TERM con80x28
|
|
||||||
TERM con80x30
|
|
||||||
TERM con80x43
|
|
||||||
TERM con80x50
|
|
||||||
TERM con80x60
|
|
||||||
TERM cons25
|
|
||||||
TERM console
|
|
||||||
TERM cygwin
|
|
||||||
TERM dtterm
|
|
||||||
TERM eterm-color
|
|
||||||
TERM gnome
|
|
||||||
TERM gnome-256color
|
|
||||||
TERM hurd
|
|
||||||
TERM jfbterm
|
|
||||||
TERM konsole
|
|
||||||
TERM kterm
|
|
||||||
TERM linux
|
|
||||||
TERM linux-c
|
|
||||||
TERM mach-color
|
|
||||||
TERM mach-gnu-color
|
|
||||||
TERM mlterm
|
|
||||||
TERM putty
|
|
||||||
TERM putty-256color
|
|
||||||
TERM rxvt
|
|
||||||
TERM rxvt-256color
|
|
||||||
TERM rxvt-cygwin
|
|
||||||
TERM rxvt-cygwin-native
|
|
||||||
TERM rxvt-unicode
|
|
||||||
TERM rxvt-unicode-256color
|
|
||||||
TERM rxvt-unicode256
|
|
||||||
TERM screen
|
|
||||||
TERM screen-256color
|
|
||||||
TERM screen-256color-bce
|
|
||||||
TERM screen-bce
|
|
||||||
TERM screen-w
|
|
||||||
TERM screen.Eterm
|
|
||||||
TERM screen.rxvt
|
|
||||||
TERM screen.linux
|
|
||||||
TERM st
|
|
||||||
TERM st-256color
|
|
||||||
TERM terminator
|
|
||||||
TERM vt100
|
|
||||||
TERM xterm
|
|
||||||
TERM xterm-16color
|
|
||||||
TERM xterm-256color
|
|
||||||
TERM xterm-88color
|
|
||||||
TERM xterm-color
|
|
||||||
TERM xterm-debian
|
|
||||||
|
|
||||||
# Below are the color init strings for the basic file types. A color init
|
|
||||||
# string consists of one or more of the following numeric codes:
|
|
||||||
# Attribute codes:
|
|
||||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
|
||||||
# Text color codes:
|
|
||||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
|
||||||
# Background color codes:
|
|
||||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
|
||||||
#NORMAL 00 # no color code at all
|
|
||||||
#FILE 00 # regular file: use no color at all
|
|
||||||
RESET 0 # reset to "normal" color
|
|
||||||
DIR 01;34 # directory
|
|
||||||
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
|
||||||
# numerical value, the color is as for the file pointed to.)
|
|
||||||
MULTIHARDLINK 00 # regular file with more than one link
|
|
||||||
FIFO 40;33 # pipe
|
|
||||||
SOCK 01;35 # socket
|
|
||||||
DOOR 01;35 # door
|
|
||||||
BLK 40;33;01 # block device driver
|
|
||||||
CHR 40;33;01 # character device driver
|
|
||||||
ORPHAN 01;05;37;41 # orphaned syminks
|
|
||||||
MISSING 01;05;37;41 # ... and the files they point to
|
|
||||||
SETUID 37;41 # file that is setuid (u+s)
|
|
||||||
SETGID 30;43 # file that is setgid (g+s)
|
|
||||||
CAPABILITY 30;41 # file with capability
|
|
||||||
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
|
|
||||||
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
|
|
||||||
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
|
|
||||||
|
|
||||||
# This is for files with execute permission:
|
|
||||||
EXEC 01;32
|
|
||||||
|
|
||||||
# List any file extensions like '.gz' or '.tar' that you would like ls
|
|
||||||
# to colorize below. Put the extension, a space, and the color init string.
|
|
||||||
# (and any comments you want to add after a '#')
|
|
||||||
|
|
||||||
# If you use DOS-style suffixes, you may want to uncomment the following:
|
|
||||||
#.cmd 01;32 # executables (bright green)
|
|
||||||
#.exe 01;32
|
|
||||||
#.com 01;32
|
|
||||||
#.btm 01;32
|
|
||||||
#.bat 01;32
|
|
||||||
# Or if you want to colorize scripts even if they do not have the
|
|
||||||
# executable bit actually set.
|
|
||||||
#.sh 01;32
|
|
||||||
#.csh 01;32
|
|
||||||
|
|
||||||
# archives or compressed (bright red)
|
|
||||||
.tar 01;31
|
|
||||||
.tgz 01;31
|
|
||||||
.arc 01;31
|
|
||||||
.arj 01;31
|
|
||||||
.taz 01;31
|
|
||||||
.lha 01;31
|
|
||||||
.lz4 01;31
|
|
||||||
.lzh 01;31
|
|
||||||
.lzma 01;31
|
|
||||||
.tlz 01;31
|
|
||||||
.txz 01;31
|
|
||||||
.tzo 01;31
|
|
||||||
.t7z 01;31
|
|
||||||
.zip 01;31
|
|
||||||
.z 01;31
|
|
||||||
.Z 01;31
|
|
||||||
.dz 01;31
|
|
||||||
.gz 01;31
|
|
||||||
.lrz 01;31
|
|
||||||
.lz 01;31
|
|
||||||
.lzo 01;31
|
|
||||||
.xz 01;31
|
|
||||||
.bz2 01;31
|
|
||||||
.bz 01;31
|
|
||||||
.tbz 01;31
|
|
||||||
.tbz2 01;31
|
|
||||||
.tz 01;31
|
|
||||||
.deb 01;31
|
|
||||||
.rpm 01;31
|
|
||||||
.jar 01;31
|
|
||||||
.war 01;31
|
|
||||||
.ear 01;31
|
|
||||||
.sar 01;31
|
|
||||||
.rar 01;31
|
|
||||||
.alz 01;31
|
|
||||||
.ace 01;31
|
|
||||||
.zoo 01;31
|
|
||||||
.cpio 01;31
|
|
||||||
.7z 01;31
|
|
||||||
.rz 01;31
|
|
||||||
.cab 01;31
|
|
||||||
|
|
||||||
# image formats
|
|
||||||
.jpg 01;35
|
|
||||||
.jpeg 01;35
|
|
||||||
.gif 01;35
|
|
||||||
.bmp 01;35
|
|
||||||
.pbm 01;35
|
|
||||||
.pgm 01;35
|
|
||||||
.ppm 01;35
|
|
||||||
.tga 01;35
|
|
||||||
.xbm 01;35
|
|
||||||
.xpm 01;35
|
|
||||||
.tif 01;35
|
|
||||||
.tiff 01;35
|
|
||||||
.png 01;35
|
|
||||||
.svg 01;35
|
|
||||||
.svgz 01;35
|
|
||||||
.mng 01;35
|
|
||||||
.pcx 01;35
|
|
||||||
.mov 01;35
|
|
||||||
.mpg 01;35
|
|
||||||
.mpeg 01;35
|
|
||||||
.m2v 01;35
|
|
||||||
.mkv 01;35
|
|
||||||
.webm 01;35
|
|
||||||
.ogm 01;35
|
|
||||||
.mp4 01;35
|
|
||||||
.m4v 01;35
|
|
||||||
.mp4v 01;35
|
|
||||||
.vob 01;35
|
|
||||||
.qt 01;35
|
|
||||||
.nuv 01;35
|
|
||||||
.wmv 01;35
|
|
||||||
.asf 01;35
|
|
||||||
.rm 01;35
|
|
||||||
.rmvb 01;35
|
|
||||||
.flc 01;35
|
|
||||||
.avi 01;35
|
|
||||||
.fli 01;35
|
|
||||||
.flv 01;35
|
|
||||||
.gl 01;35
|
|
||||||
.dl 01;35
|
|
||||||
.xcf 01;35
|
|
||||||
.xwd 01;35
|
|
||||||
.yuv 01;35
|
|
||||||
.cgm 01;35
|
|
||||||
.emf 01;35
|
|
||||||
|
|
||||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
|
||||||
.axv 01;35
|
|
||||||
.anx 01;35
|
|
||||||
.ogv 01;35
|
|
||||||
.ogx 01;35
|
|
||||||
|
|
||||||
# Document files
|
|
||||||
.pdf 00;32
|
|
||||||
.ps 00;32
|
|
||||||
.txt 00;32
|
|
||||||
.patch 00;32
|
|
||||||
.diff 00;32
|
|
||||||
.log 00;32
|
|
||||||
.tex 00;32
|
|
||||||
.doc 00;32
|
|
||||||
|
|
||||||
# audio formats
|
|
||||||
.aac 00;36
|
|
||||||
.au 00;36
|
|
||||||
.flac 00;36
|
|
||||||
.m4a 00;36
|
|
||||||
.mid 00;36
|
|
||||||
.midi 00;36
|
|
||||||
.mka 00;36
|
|
||||||
.mp3 00;36
|
|
||||||
.mpc 00;36
|
|
||||||
.ogg 00;36
|
|
||||||
.ra 00;36
|
|
||||||
.wav 00;36
|
|
||||||
|
|
||||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
|
||||||
.axa 00;36
|
|
||||||
.oga 00;36
|
|
||||||
.spx 00;36
|
|
||||||
.xspf 00;36
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Clean Up Home Directory
|
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
|
||||||
export XDG_STATE_HOME="$HOME/.local/state"
|
|
||||||
export TS3_CONFIG_DIR="$XDG_CONFIG_HOME/ts3client"
|
|
||||||
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
|
|
||||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
|
||||||
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
|
|
||||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
|
||||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
|
||||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
|
||||||
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
|
|
||||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
|
||||||
alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"'
|
|
||||||
alias code='code --extensions-dir "$XDG_DATA_HOME/vscode"'
|
|
||||||
alias vscodium='vscodium --extensions-dir "$XDG_DATA_HOME/vscode"'
|
|
||||||
|
|
||||||
export EDITOR=/usr/bin/nvim
|
|
||||||
export BROWSER=/usr/bin/firefox
|
|
||||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
|
||||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
|
||||||
Reference in new issue
Block a user