Skip to content

Commit

Permalink
welcome x230
Browse files Browse the repository at this point in the history
  • Loading branch information
smlb committed Jul 27, 2017
0 parents commit 8f2ae61
Show file tree
Hide file tree
Showing 16 changed files with 5,296 additions and 0 deletions.
2,458 changes: 2,458 additions & 0 deletions .vim/autoload/plug.vim

Large diffs are not rendered by default.

2,090 changes: 2,090 additions & 0 deletions .vim/colors/paper.vim

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions .vim/colors/smlb.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
" Vim color file
" Maintainer: Smlb (mod of David Schweikert <[email protected]> delek scheme)
" Last Change: 2017-29-06

hi clear

let colors_name = "sobrio"

" Normal should come first
hi Normal guibg=#121212 guifg=#888888
hi Cursor guibg=fg guifg=bg

hi CursorLine cterm=NONE ctermbg=0 guibg=#222222
hi CursorLineNr cterm=bold ctermfg=11 ctermbg=0 guibg=#222222 guifg=#CCAA66
hi DiffAdd ctermbg=0 ctermfg=6 guibg=#222222 guifg=#2b4780
hi DiffChange ctermbg=0 ctermfg=5 guibg=#222222 guifg=#665980
hi DiffDelete cterm=bold ctermbg=0 ctermfg=1 guibg=#222222 guifg=#802b41
hi DiffText cterm=bold ctermbg=0 ctermfg=11 guibg=#222222 guifg=#CCAA66
hi Directory ctermfg=12 guifg=#6687cc
hi ErrorMsg ctermbg=none ctermfg=9 guifg=#cc6681
hi FoldColumn ctermbg=8 ctermfg=7 guibg=#222222 guifg=#999999
hi Folded ctermbg=8 ctermfg=7 guibg=#222222 guifg=#999999
hi IncSearch cterm=reverse gui=reverse
hi LineNr ctermbg=none ctermfg=8 guibg=#121212 guifg=#444444
hi MoreMsg ctermfg=2 gui=bold guifg=#6d8059
hi NonText ctermfg=5 gui=bold guibg=#121212 guifg=#665980
hi Pmenu ctermbg=8 ctermfg=none guibg=#999999 guifg=#222222
hi PmenuSel ctermbg=0 ctermfg=11 guibg=#222222 guifg=#CCAA66
hi Question ctermfg=2 gui=bold guifg=#6d8059
hi Search ctermbg=3 ctermfg=8 guibg=#80632c guifg=#444444
hi SpecialKey ctermfg=12 guifg=#b1a3cc
hi StatusLine ctermfg=0 ctermbg=247 cterm=none
hi StatusLineNC ctermfg=247 ctermbg=238 cterm=none
hi TabLine cterm=none ctermbg=0 ctermfg=none gui=none guifg=#888888 guibg=#222222
hi TabLineFill cterm=none ctermbg=8 ctermfg=none gui=none guifg=#888888 guibg=#222222
hi TabLineSel cterm=bold ctermbg=0 ctermfg=15 guifg=#cccccc guibg=#802b41
hi Title ctermfg=5 gui=bold guifg=#665980
hi VertSplit cterm=NONE ctermbg=none ctermfg=0 guifg=#222222 gui=NONE
hi Visual cterm=none ctermbg=8 gui=reverse guibg=#222222
hi VisualNOS cterm=bold,underline
hi WarningMsg ctermfg=1 guifg=#802b41
hi WildMenu ctermbg=8 ctermfg=none guibg=#444444 guifg=#999999

" syntax highlighting
hi Comment cterm=NONE ctermfg=4 gui=NONE guifg=#2b4780
hi Constant cterm=NONE ctermfg=1 gui=NONE guifg=#802b41
hi Identifier cterm=NONE ctermfg=10 gui=NONE guifg=#afcc8f
hi PreProc cterm=NONE ctermfg=5 gui=NONE guifg=#665980
hi Special cterm=NONE ctermfg=7 gui=NONE guifg=#999999
hi Statement cterm=NONE ctermfg=14 gui=NONE guifg=#8fbbcc
hi Type cterm=NONE ctermfg=2 gui=NONE guifg=#6d8059

" spell check
hi SpellLocal cterm=none ctermfg=6 ctermbg=none guifg=#4c7180
hi SpellBad cterm=none ctermfg=1 ctermbg=none guifg=#802b41
hi SpellCap cterm=none ctermfg=4 ctermbg=none guifg=#2b4780
hi SpellRare cterm=none ctermfg=5 ctermbg=none guifg=#665980
" vim: sw=2
1 change: 1 addition & 0 deletions .vim/plugged/lightline.vim
Submodule lightline.vim added at ff74d6
1 change: 1 addition & 0 deletions .vim/plugged/nerdtree
Submodule nerdtree added at e2a992
95 changes: 95 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
filetype plugin on
filetype indent on

" Some options
set nocompatible
set showmatch
set wildmenu
set number
set ruler
set cmdheight=2
set backspace=eol,start,indent
set ignorecase
set incsearch
set magic
set background=dark
set t_Co=256
set shell=/bin/zsh
set mouse=a
set autoread
set smartcase
set linebreak
set textwidth=0
set display=lastline

set history=1000
" Don't save nothing
set noswapfile
set nobackup
set nowb

" Encoding
set termencoding=utf-8
set encoding=utf-8
scriptencoding utf-8
set ffs=unix

set noerrorbells

syntax enable
colorscheme smlb

" Some indent commands
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set lbr
set tw=500
set ai
set si
set wrap
set laststatus=2

set pastetoggle=<F2>

" command W w !sudo tee % > /dev/null

call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
Plug 'itchyny/lightline.vim'
call plug#end()

try
set undodir=~/.vim/tmp/undo
set undofile
catch
endtry

let g:NERDTreeWinPos = "right"
let mapleader = ","
let g:mapleader = ","

nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>rl :so $MYVIMRC<CR>
nmap <silent> <leader>tt gt<CR>
nmap <silent> <leader>hh :split<CR>
nmap <silent> <leader>vv :vsplit<CR>
nmap <silent> <leader>ff :NERDTreeToggle<CR>
nmap <silent> <leader>cs :set background=light<CR>
map <leader>t<leader> :tabnext
let g:rehash256 = 1
let &runtimepath.=',~/.vim/bundle/ale'
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }

"vim: set ft=vim ts=2 sw=2 tw=500 et :
22 changes: 22 additions & 0 deletions .zsh/alias.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
alias rsync='rsync -P --recursive'
alias ls='ls --classify --tabsize=0 --literal --color=auto --human-readable'
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias less='less --quiet'
alias df='df --human-readable'
alias free='free -h'
alias gitmaster='git push -u origin master && echo " (╯°□°)╯︵ WTF DID YOU PUSH BRO?"'
alias grep='grep --color=auto'
alias dmesg='dmesg -H'
alias cower='cower -t ~/src --color=always'
alias netlisten='lsof -i -P | grep LISTEN'
alias paclog='tail -n 40 /var/log/pacman.log'
alias rmnotneeded='pacman -Rscn $(pacman -Qdtq)'
alias fdisk="sudo fdisk"
alias close="i3lock -c 000000; systemctl suspend"
alias c="clear"

# tmux alias ----- {
alias tmuxn="tmux new -s $1"
alias tmuxa="tmux attach -t $1"
68 changes: 68 additions & 0 deletions .zsh/git_prompt.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Adapted from code found at <https://gist.github.com/1712320>.

setopt prompt_subst
autoload -U colors && colors # Enable colors in prompt

# Modify the colors and symbols in these variables as desired.
GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}"
GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}"
GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"
GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}"
GIT_PROMPT_MERGING="%{$fg[magenta]%}⚡︎%{$reset_color%}"
GIT_PROMPT_UNTRACKED="%{$fg[red]%}●%{$reset_color%}"
GIT_PROMPT_MODIFIED="%{$fg[blue]%}●%{$reset_color%}"
GIT_PROMPT_STAGED="%{$fg[green]%}●%{$reset_color%}"

# Show Git branch/tag, or name-rev if on detached head
parse_git_branch() {
(git symbolic-ref -q HEAD || git name-rev --name-only --no-undefined --always HEAD) 2> /dev/null
}

# Show different symbols as appropriate for various Git repository states
parse_git_state() {

# Compose this value via multiple conditional appends.
local GIT_STATE=""

local NUM_AHEAD="$(git log --oneline @{u}.. 2> /dev/null | wc -l | tr -d ' ')"
if [ "$NUM_AHEAD" -gt 0 ]; then
GIT_STATE=$GIT_STATE${GIT_PROMPT_AHEAD//NUM/$NUM_AHEAD}
fi

local NUM_BEHIND="$(git log --oneline ..@{u} 2> /dev/null | wc -l | tr -d ' ')"
if [ "$NUM_BEHIND" -gt 0 ]; then
GIT_STATE=$GIT_STATE${GIT_PROMPT_BEHIND//NUM/$NUM_BEHIND}
fi

local GIT_DIR="$(git rev-parse --git-dir 2> /dev/null)"
if [ -n $GIT_DIR ] && test -r $GIT_DIR/MERGE_HEAD; then
GIT_STATE=$GIT_STATE$GIT_PROMPT_MERGING
fi

if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
GIT_STATE=$GIT_STATE$GIT_PROMPT_UNTRACKED
fi

if ! git diff --quiet 2> /dev/null; then
GIT_STATE=$GIT_STATE$GIT_PROMPT_MODIFIED
fi

if ! git diff --cached --quiet 2> /dev/null; then
GIT_STATE=$GIT_STATE$GIT_PROMPT_STAGED
fi

if [[ -n $GIT_STATE ]]; then
echo "$GIT_PROMPT_PREFIX$GIT_STATE$GIT_PROMPT_SUFFIX"
fi

}

# If inside a Git repository, print its branch and state
git_prompt_string() {
local git_where="$(parse_git_branch)"
[ -n "$git_where" ] && echo "$GIT_PROMPT_SYMBOL$(parse_git_state)$GIT_PROMPT_PREFIX%{$fg[blue]%}${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX"
}

# Set the right-hand prompt
RPS1='$(git_prompt_string)'
35 changes: 35 additions & 0 deletions .zsh/setopt.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
setopt VI
setopt NO_BEEP
setopt correctall
setopt always_last_prompt
setopt always_to_end
setopt auto_list
setopt auto_menu
setopt auto_param_keys
setopt auto_param_slash
setopt auto_remove_slash
setopt no_bash_auto_list
setopt complete_aliases
setopt complete_in_word
setopt glob_complete
setopt hash_list_all
setopt list_ambiguous
setopt no_list_beep
setopt list_packed
setopt no_list_rows_first
setopt list_types
setopt menu_complete
setopt rec_exact
setopt append_history
setopt extended_history


man() {
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
43 changes: 43 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
HIST_STAMPS="mm/dd/yyyy"

source $HOME/.zsh/alias.zsh
source $HOME/.zsh/setopt.zsh

autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
zstyle '*:processes-names' command 'ps -e -o comm='
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
zstyle ':completion:*' file-sort modification reverse
zstyle ':completion:*:correct:*' original true

autoload -U colors && colors

zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*:history-words' menu yes
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

autoload up-line-or-beginning-search
autoload down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search

export EDITOR=vim

bindkey "^[[H" beginning-of-line
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
bindkey "^[[5~" up-line-or-history
bindkey "^[[6~" down-line-or-history
bindkey "\e[A" up-line-or-beginning-search
bindkey "\e[B" down-line-or-beginning-search

HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=$HISTSIZE

PROMPT="%{$fg[blue]%}%n%{$reset_color%} %{$fg_no_bold[white]%}%~ %{$reset_color%}%# "

source $HOME/.zsh/git_prompt.zsh
49 changes: 49 additions & 0 deletions cmus/smlb.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Default text color
set color_win_fg=gray

# Overall background color
set color_win_bg=default

# Command-line colors
set color_cmdline_bg=default
set color_cmdline_fg=gray
set color_error=red
set color_info=gray
set color_separator=darkgray

# Bottom status line
set color_statusline_bg=default
set color_statusline_fg=blue

# Bottom title line
set color_titleline_bg=black
set color_titleline_fg=lightblue

# Top title area
set color_win_title_bg=black
set color_win_title_fg=lightblue

##### Playing File Colors ###############################
# Unselected currently playing track's text
set color_win_cur=lightblue

# Active selection for currently playing track
set color_win_cur_sel_bg=darkgray
set color_win_cur_sel_fg=white

# Inactive selection for currently playing track
set color_win_inactive_cur_sel_bg=darkgray
set color_win_inactive_cur_sel_fg=lightblue

##### Non-Playing File Colors ###############################
# Active selection
set color_win_sel_bg=gray
set color_win_sel_fg=black

# Inactive selection
set color_win_inactive_sel_bg=black
set color_win_inactive_sel_fg=white

##### File Browser View Colors ###############################
# Directory listing color
set color_win_dir=lightblue
Binary file added i3/bgg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8f2ae61

Please sign in to comment.