Skip to content

Instantly share code, notes, and snippets.

@timm
Last active March 1, 2023 03:21
Show Gist options
  • Select an option

  • Save timm/d141ec9cac906dd6c805b3fa1113ea45 to your computer and use it in GitHub Desktop.

Select an option

Save timm/d141ec9cac906dd6c805b3fa1113ea45 to your computer and use it in GitHub Desktop.
!DOT config file library
Name. What
_dotvimrc vim config file
_dotbashrc bash config file
ell shell config boot file
#!/usr/bin/env bash
# vim: ft=bash ts=2 sw=2 sts=2 et :
hi() {
clear
tput bold; tput setaf 11
cat<<-'EOF'
___
_/ oo\
( \ -/__
\ \__) There is
/ \ escape from
jgs / _\ sH ELL !
`"""""``
EOF
tput bold; tput setaf 14
echo "Short cuts:"
alias | sed 's/alias / /'
echo ""
tput sgr0
}
here="$(cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )"
alias ..='cd ..'
alias ...='cd ../../../'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias gp="git add *;git commit -am save;git push;git status"
alias grep='grep --color=auto'
alias repl="rlwrap sbcl --noinform "
alias h="history"
alias hello="git pull"
alias ls="ls -G "
alias vi="vim -u $here/_dotvimrc"
export BASH_SILENCE_DEPRECATION_WARNING=1
export PATH="$PWD:/opt/homebrew/bin:$PATH"
export EDITOR=$(which pico)
lisp() {
f=$1
shift
$(which sbcl) --noinform --script $f $* \
2> >( gawk '/^Backtrace / {exit} 1' )
}
here() { cd $1; basename `pwd`; }
PROMPT_COMMAND='echo -ne "⭐️ $(git branch 2>/dev/null | grep '^*' | colrm 1 2):";PS1="$(here ..)/$(here .):\!\e[m ▶ "'
lu() { f=$1; lua $f.lua $*; }
hi
#!/usr/bin/env bash
# vim: ft=bash ts=2 sw=2 sts=2 et :
what=4newbs #
hi() {
clear
tput bold; tput setaf 11
cat<<-'EOF'
___
_/ oo\
( \ -/__
\ \__) There is no
/ \ escape from
jgs / _\ sH ELL !!!
`"""""``
EOF
tput bold; tput setaf 14
echo "Short cuts:"
alias | sed 's/alias / /'
echo ""
tput sgr0
}
here="$(cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )"
alias ..='cd ..'
alias ...='cd ../../../'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias gp="git add *;git commit -am save;git push;git status"
alias grep='grep --color=auto'
alias h="history"
alias hello="git pull"
alias ls="ls -G "
alias vi="vim -u $here/_dotvimrc"
export BASH_SILENCE_DEPRECATION_WARNING=1
export PATH="$PWD:/opt/homebrew/bin:$PATH"
export EDITOR=$(which pico)
here() { cd $1; basename `pwd`; }
PROMPT_COMMAND='echo -ne "🪬 $(git branch 2>/dev/null | grep '^*' | colrm 1 2):";PS1="$(here ..)/$(here .):\!\e[m ▶ "'
lu() { f=$1; lua $f.lua $*; }
hi
" vim: set filetype=bash :
let &shell='/bin/bash --init-file ../../ful'
"let &shell='/bin/bash ../../ful'
set list
set listchars=tab:>-
set backupdir-=.
set backupdir^=~/tmp,/tmp
set nocompatible
"filetype plugin indent on
set modelines=3
set scrolloff=3
set autoindent
set hidden "remember ls
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set backspace=indent,eol,start
set laststatus=2
set splitbelow
set paste
set mouse=a
set title
"set number
"set relativenumber
"autocmd BufEnter * cd %:p:h
set showmatch
set matchtime=15
set background=light
set syntax=on
syntax enable
set ignorecase
set incsearch
set smartcase
set showmatch
set hlsearch
set nofoldenable " disable folding
set ruler
set laststatus=2
set statusline=
set statusline+=%F
set statusline+=\
set statusline+=%m
set statusline+=%=
set statusline+=%y
set statusline+=\
set statusline+=%c
set statusline+=:
set statusline+=%l
set statusline+=\
set lispwords+=do-pairs
set lispwords+=is
set lispwords+=whale
set lispwords+=aif
set lispwords+=loop
set lispwords+=bad
set lispwords+=until
set lispwords+=with
set lispwords+=deftest
set lispwords+=defdemo
set lispwords+=defklass
set lispwords+=doslots
set lispwords+=defmemo
set lispwords+=do-cells
set lispwords+=do-pairs
set lispwords+=do-items
set lispwords+=while
set lispwords+=with-csv
set lispwords+=until
set path+=../**
syn match lispFunc "def"
if has("mouse_sgr")
set ttymouse=sgr
else
set ttymouse=xterm2
end
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
map Z 1z=
"set spell spelllang=en_us
set spellsuggest=fast,20 "Don't show too much suggestion for spell check
nn <F7> :setlocal spell! spell?<CR>
let g:vim_markdown_fenced_languages = ['lisp=lisp']
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'nanotech/jellybeans.vim'
"Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree'
"Plugin 'kien/rainbow_parentheses.vim'
Plugin 'nielsmadan/harlequin'
Plugin 'tbastos/vim-lua'
Plugin 'airblade/vim-gitgutter'
"Plugin 'itchyny/lightline.vim'
Plugin 'junegunn/fzf'
" Plugin 'humiaozuzu/tabbar'
" Plugin 'drmingdrmer/vim-tabbar'
Plugin 'tomtom/tcomment_vim'
Plugin 'ap/vim-buftabline'
Plugin 'junegunn/fzf.vim'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'nvie/vim-flake8'
Plugin 'seebi/dircolors-solarized'
Plugin 'vim-syntastic/syntastic'
Plugin 'nequo/vim-allomancer'
Plugin 'julialang/julia-vim'
Plugin 'morhetz/gruvbox'
Plugin 'tomasr/molokai'
"Plugin 'vimwiki/vimwiki'
Plugin 'AutumnLeaf'
"Plugin 'sonph/onehalf'
Plugin 'dracula/vim', { 'as': 'dracula' }
Plugin 'kchmck/vim-coffee-script'
Plugin 'tpope/vim-markdown'
Plugin 'tpope/vim-commentary'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
filetype plugin on
"let g:autopep8_indent_size=2
"let g:autopep8_max_line_length=79
"let g:autopep8_on_save = 1
"let g:autopep8_disable_show_diff=1
"let g:autopep8_ignore="E261,E302,E301"
"autocmd FileType python noremap <buffer> <F8> :call Autopep8()<CR>
colorscheme harlequin
nmap <F9> :!../../gold -t %<C-M>p
nnoremap <Leader><space> :noh<cr>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
set titlestring=%{expand(\"%:p:h\")}
hi Normal guibg=NONE ctermbg=NONE
hi NonText guibg=NONE ctermbg=NONE
set fillchars=vert:\|
hi VertSplit cterm=NONE
set ts=2
set sw=2
set sts=2
set et
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
set hidden
nnoremap <C-N> :bnext<CR>
nnoremap <C-P> :bprev<CR>
set formatoptions-=t
set nowrap
" Markdown
let g:markdown_fenced_languages = ['lisp','lua','awk','py=python']
let g:GitGutterSignsDisable=0
colorscheme jellybeans
set number
set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
autocmd Filetype python setlocal ts=2 sw=2 expandtab
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" let g:syntastic_python_checkers = ['python']
" let g:syntastic_python_python_exec = 'python3'
" let g:syntastic_loc_list_height=5
"autocmd BufWritePost *.py call Flake8()
"au BufRead,BufNewFile *.md set filetype=lisp
autocmd Filetype lisp setlocal ts=2 sw=2 expandtab
autocmd Filetype markdown setlocal ts=2 sw=2 expandtab
"au VimEnter * RainbowParenthesesToggle
"au Syntax * RainbowParenthesesLoadRound
"au Syntax * RainbowParenthesesLoadSquare
"au Syntax * RainbowParenthesesLoadBraces
" Allow crosshair cursor highlighting.
hi CursorLine cterm=NONE ctermbg=0
hi CursorColumn cterm=NONE ctermbg=0
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
hi Normal guibg=NONE ctermbg=NONE
if exists('$VIMRUNNING') && ! has('gui_running')
qall!
else
let $VIMRUNNING = 1
endif
#!/usr/bin/env bash
# vim: ft=bash ts=2 sw=2 sts=2 et :
export BASH_SILENCE_DEPRECATION_WARNING=1
here="$(cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )"
echo "bash --init-file '$here/_dotbashrc' -i"
bash --init-file "$here/_dotbashrc" -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment