mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-31 12:31:15 +01:00 
			
		
		
		
	Merge branch 'master' of ssh+git://github/tiyn/.dotfiles into master
This commit is contained in:
		| @@ -9,6 +9,7 @@ alias ".."="cd .." | ||||
| alias "..."="cd ../.." | ||||
| alias "...."="cd ../../.." | ||||
| alias "....."="cd ../../../.." | ||||
| alias "dockervol"="cd /var/lib/docker/volumes" | ||||
|  | ||||
| # cp | ||||
| alias cp="cp -i" | ||||
| @@ -39,7 +40,7 @@ haste() { | ||||
| } | ||||
|  | ||||
| #khal | ||||
| alias calendar="khal" | ||||
| alias calendar="khal interactive" | ||||
|  | ||||
| # khard | ||||
| alias contacts="khard" | ||||
| @@ -53,12 +54,16 @@ alias tree="lsd --tree" | ||||
| # mkdir | ||||
| alias mkdir="mkdir -p" | ||||
|  | ||||
| # mount | ||||
| alias mount="mount |column -t" | ||||
| # mutt | ||||
| alias mutt="neomutt" | ||||
| alias upmutt="mbsync -a && neomutt" | ||||
|  | ||||
| # mv | ||||
| alias mv="mv -i" | ||||
|  | ||||
| # octave | ||||
| alias octave="octave --persist" | ||||
|  | ||||
| # pacman | ||||
| alias pac="sudo pacman" | ||||
|  | ||||
| @@ -90,5 +95,9 @@ command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d" | ||||
| # weather | ||||
| alias weather="curl wttr.in" | ||||
|  | ||||
| #wget | ||||
| # wget | ||||
| alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts" | ||||
|  | ||||
| # youtube-dl | ||||
| alias yta="youtube-dl -f 'bestaudio[ext=m4a]'" | ||||
| alias yta="youtube-dl -f 'bestvide[ext=mp4]+bestaudio[ext=m4a]'" | ||||
|   | ||||
| @@ -28,8 +28,7 @@ | ||||
| 	<alias> | ||||
| 		<family>monospace</family> | ||||
| 		<prefer> | ||||
|             <family>JetBrainsMono Nerd Font Mono</family> | ||||
| 			<family>BlexMono Nerd Font Mono</family> | ||||
|                         <family>JetBrainsMono Nerd Font Mono</family> | ||||
| 			<family>Joy Pixels</family> | ||||
| 			<family>Noto Color Emoji</family> | ||||
| 		</prefer> | ||||
|   | ||||
| @@ -1,9 +1,9 @@ | ||||
| [Filechooser Settings] | ||||
| LocationMode=path-bar | ||||
| LocationMode=filename-entry | ||||
| ShowHidden=false | ||||
| ShowSizeColumn=true | ||||
| GeometryX=0 | ||||
| GeometryY=0 | ||||
| GeometryX=286 | ||||
| GeometryY=86 | ||||
| GeometryWidth=796 | ||||
| GeometryHeight=596 | ||||
| SortColumn=name | ||||
|   | ||||
| @@ -1,9 +0,0 @@ | ||||
| [Default Applications] | ||||
| x-scheme-handler/mailto=mail.desktop | ||||
| text/plain=text.desktop; | ||||
| text/x-shellscript=text.desktop; | ||||
| application/pdf=pdf.desktop; | ||||
| image/png=img.desktop; | ||||
| image/jpeg=img.desktop; | ||||
| image/gif=img.desktop; | ||||
| application/rss+xml=rss.desktop | ||||
| @@ -1,11 +0,0 @@ | ||||
| # vim: filetype=neomuttrc | ||||
| #source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated | ||||
| source /home/tiynger/.config/mutt/custom.muttrc | ||||
| source /home/tiynger/.config/mutt/muttrc.prv | ||||
| # khard integration | ||||
| set query_command = "khard email --parsable --search-in-source-files %s" | ||||
| bind editor <Tab> complete-query | ||||
| bind editor ^T complete | ||||
| macro index,pager A \ | ||||
| 	"<pipe-message>khard add-email<return>" \ | ||||
| 	"add the sender email address to khard" | ||||
| @@ -1,7 +0,0 @@ | ||||
| #most recent | ||||
| https://www.archlinux.org/feeds/news/ | ||||
|  | ||||
| #Luke Smith | ||||
| http://lukesmith.xyz/rss.xml "~Luke Smith (Blog)" | ||||
| https://notrelated.libsyn.com/rss "~Luke Smith - Not Related (Podcast)" | ||||
| https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (YouTube)" | ||||
| @@ -1,7 +0,0 @@ | ||||
| let g:netrw_dirhistmax  =10 | ||||
| let g:netrw_dirhistcnt =5 | ||||
| let g:netrw_dirhist_5='/etc/security' | ||||
| let g:netrw_dirhist_4='/home/tiynger/irc/irc.gnu.org/#gnu' | ||||
| let g:netrw_dirhist_3='/home/tiynger/irc/irc.hackint.org/#36c3-hall-b' | ||||
| let g:netrw_dirhist_2='/home/tiynger/.config/zsh' | ||||
| let g:netrw_dirhist_1='/boot/loader/entries' | ||||
| @@ -29,10 +29,11 @@ snippet ,fr "Frame" A | ||||
| 	\frametitle{$1} | ||||
| 	$2 | ||||
| \end{frame} | ||||
| $3 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,em "Emphasis" A | ||||
| \emph{$1} | ||||
| \emph{$1} $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,bf "Bold" A | ||||
| @@ -55,12 +56,14 @@ snippet ,ol "Enumeration" A | ||||
| \begin{enumerate} | ||||
| 	\item $1 | ||||
| \end{enumerate} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,ul "Itemization" A | ||||
| \begin{itemize} | ||||
| 	\item $1 | ||||
| \end{itemize} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,li "List element" A | ||||
| @@ -76,6 +79,7 @@ snippet ,tab "Tabular" A | ||||
| \begin{tabular} | ||||
| $1 | ||||
| \end{tabular} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,a "Hyperlink" A | ||||
| @@ -87,34 +91,49 @@ snippet ,sc "Small caps" A | ||||
| endsnippet | ||||
|  | ||||
| snippet ,chap "Chapter" A | ||||
| \chapter{$1} | ||||
| \chapter {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,sec "Section" A | ||||
| \section*{$1} | ||||
| \section* {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,lsec "Section" A | ||||
| \section {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,ssec "Subsection" A | ||||
| \subsection*{$1} | ||||
| \subsection* {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,sssec "Subsubsection" A | ||||
| \subsubsection*{$1} | ||||
| \subsubsection* {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,par "Paragraph" A | ||||
| \paragraph* {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,spar "Subparagraph" A | ||||
| \subparagraph* {$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,up "Use Packagage" A | ||||
| \usepackage{$1} | ||||
| $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,tt "Typewriter" A | ||||
| snippet ,ttt "Typewriter" A | ||||
| \texttt{$1} $2 | ||||
| endsnippet | ||||
|  | ||||
| snippet ,par "Paragraph" A | ||||
| \paragraph*{$1} | ||||
| $2 | ||||
| snippet $ "Mathmode" A | ||||
| $$1$ $2 | ||||
| endsnippet | ||||
|   | ||||
| @@ -1,4 +1,6 @@ | ||||
| " Begin Plugin section | ||||
| let mapleader ="," | ||||
|  | ||||
| """ Begin Plugin section | ||||
| if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) | ||||
| 	echo "Downloading junegunn/vim-plug to manage plugins..." | ||||
| 	silent !mkdir -p ~/.config/nvim/autoload/ | ||||
| @@ -7,61 +9,113 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) | ||||
| endif | ||||
|  | ||||
| call plug#begin('~/.local/share/nvim/plugged') | ||||
| Plug 'lervag/vimtex' , {'for' : 'tex'} " Tex library for autocompletion | ||||
| Plug 'donRaphaco/neotex' , {'for': 'tex'} " Asynchronous pdf rendering | ||||
| Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} " Filetree | ||||
| Plug 'majutsushi/tagbar' " Show tags | ||||
| Plug 'airblade/vim-gitgutter' " Git Upgrades | ||||
| Plug 'qpkorr/vim-renamer' " Bulk renamer | ||||
| Plug 'sirver/ultisnips' " Snippets | ||||
| Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'} " Better syntax highlight for java than default | ||||
| Plug 'frazrepo/vim-rainbow' " Colorized matching brackets | ||||
| Plug 'junegunn/fzf.vim' " Quickly jump files using fzf | ||||
| Plug 'ryanoasis/vim-devicons' " Enable Icons for vim | ||||
| Plug 'rrethy/vim-hexokinase' , {'do': 'make hexokinase'} " Color Preview | ||||
| Plug 'airblade/vim-gitgutter' " git upgrades | ||||
| Plug 'alvan/vim-closetag' " auto close HTML tags | ||||
| Plug 'donRaphaco/neotex' , {'for': 'tex'} " asynchronous pdf rendering | ||||
| Plug 'frazrepo/vim-rainbow' " colorized matching brackets | ||||
| Plug 'junegunn/fzf.vim' " quickly jump files using fzf | ||||
| Plug 'lervag/vimtex' , {'for' : 'tex'} " tex library for autocompletion | ||||
| Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} " show tags | ||||
| Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " autocompletion | ||||
| Plug 'qpkorr/vim-renamer' " bulk renamer | ||||
| Plug 'raimondi/delimitmate' " automatic closing of brackets | ||||
| "Plug 'rakr/vim-one' " adding colorscheme | ||||
| Plug 'rrethy/vim-hexokinase' , {'do': 'make hexokinase'} " color Preview | ||||
| Plug 'ryanoasis/vim-devicons' " enable icons for vim | ||||
| Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} " filetree | ||||
| Plug 'sirver/ultisnips' " snippets | ||||
| Plug 'tomasiser/vim-code-dark' " adding colorscheme | ||||
| "Plug 'blueshirts/darcula' | ||||
| Plug 'godlygeek/tabular' " Tabularizing things | ||||
| Plug 'plasticboy/vim-markdown' , {'for': 'md'} " Helps for markdown | ||||
| Plug 'tpope/vim-surround' " Help for quotes/parantheses | ||||
| Plug 'alvan/vim-closetag' " Auto close HTML tags | ||||
| Plug 'tpope/vim-fugitive' " git wrapper | ||||
| Plug 'tpope/vim-surround' " help for quotes/parantheses | ||||
| Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'} " better syntax highlight for java than default | ||||
| Plug 'whonore/coqtail' , {'for': 'v'} " coq interactive proof | ||||
| call plug#end() | ||||
|  | ||||
| " Colorscheme | ||||
| colorscheme codedark | ||||
| " alvan/vim-closetag | ||||
| let g:closetag_filenames = '*.html,*.xhtml,*.phtml' | ||||
| let g:closetag_xhtml_filenames = '*.xhtml,*.jsx' | ||||
| let g:closetag_filetypes = 'html,xhtml,phtml' | ||||
| let g:closetag_xhtml_filetypes = 'xhtml,jsx' | ||||
| let g:closetag_emptyTags_caseSensitive = 1 | ||||
| let g:closetag_regions = { | ||||
|     \ 'typescript.tsx': 'jsxRegion,tsxRegion', | ||||
|     \ 'javascript.jsx': 'jsxRegion', | ||||
|     \ } | ||||
| let g:closetag_shortcut = '>' | ||||
| let g:closetag_close_shortcut = '<leader>>' | ||||
|  | ||||
| " Rainbow | ||||
| au FileType java,c,cpp,py,h call rainbow#load() | ||||
|  | ||||
| " You complete me | ||||
| let g:ycm_global_ycm_extra_conf = '/home/tiynger/.config/nvim/ycm_extra_conf.py' | ||||
| let g:ycm_autoclose_preview_window_after_completion = 1 | ||||
| let g:ycm_autoclose_preview_window_after_insertion = 1 | ||||
| let g:ycm_semantic_triggers = { | ||||
| 	\ 'tex' : ['{'] | ||||
| 	\} | ||||
| if !exists('g:ycm_semantic_triggers') | ||||
| 	let g:ycm_semantic_triggers = {} | ||||
| endif | ||||
| let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme | ||||
| let g:ycm_filepath_blacklist = {'*': 1} | ||||
|  | ||||
| " Tagbar | ||||
| map <F3> :TagbarToggle<CR> | ||||
|  | ||||
| " Nerdtree | ||||
| map <F2> :NERDTreeToggle<CR> | ||||
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | ||||
| let g:NERDTreeWinPos = "left" | ||||
|  | ||||
| " Neotex | ||||
| " donRaphaco/neotex | ||||
| let g:neotex_enabled = 2 | ||||
|  | ||||
| " CoVim | ||||
| let CoVim_default_name = "TiynGER" | ||||
| let CoVim_default_port = "7000" | ||||
| " frazrepo/vim-rainbow | ||||
| au FileType,BufNewFile,BufRead java,c,cpp,py,h call rainbow#load() | ||||
|  | ||||
| " Hexokinase | ||||
| " junegunn/fzf.vim | ||||
| let $FZF_DEFAULT_COMMAND = 'find . ~ -type f' | ||||
| nmap <F4> :FZF<CR> | ||||
|  | ||||
| " majutsushi/tagbar | ||||
| map <F3> :TagbarToggle<CR> | ||||
|  | ||||
| " neoclide/coc.nvim | ||||
| inoremap <silent><expr> <TAB> | ||||
|       \ pumvisible() ? "\<C-n>" : | ||||
|       \ <SID>check_back_space() ? "\<TAB>" : | ||||
|       \ coc#refresh() | ||||
| inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" | ||||
|  | ||||
| function! s:check_back_space() abort | ||||
|   let col = col('.') - 1 | ||||
|   return !col || getline('.')[col - 1]  =~# '\s' | ||||
| endfunction | ||||
|  | ||||
| let g:coc_global_extensions = [ | ||||
|     \ 'coc-java', | ||||
|     \ 'coc-markdownlint', | ||||
|     \ 'coc-python', | ||||
|     \ 'coc-sh', | ||||
|     \ 'coc-vimtex', | ||||
|     \ ] | ||||
|  | ||||
| if has('nvim') | ||||
|   inoremap <silent><expr> <c-space> coc#refresh() | ||||
| else | ||||
|   inoremap <silent><expr> <c-@> coc#refresh() | ||||
| endif | ||||
|  | ||||
| inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() | ||||
|                               \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" | ||||
|  | ||||
| nmap <silent> gd <Plug>(coc-definition) | ||||
| nmap <silent> gy <Plug>(coc-type-definition) | ||||
| nmap <silent> gi <Plug>(coc-implementation) | ||||
| nmap <silent> gr <Plug>(coc-references) | ||||
| nnoremap <silent> K :call <SID>show_documentation()<CR> | ||||
|  | ||||
| function! s:show_documentation() | ||||
|   if (index(['vim','help'], &filetype) >= 0) | ||||
|     execute 'h '.expand('<cword>') | ||||
|   elseif (coc#rpc#ready()) | ||||
|     call CocActionAsync('doHover') | ||||
|   else | ||||
|     execute '!' . &keywordprg . " " . expand('<cword>') | ||||
|   endif | ||||
| endfunction | ||||
|  | ||||
| autocmd CursorHold * silent call CocActionAsync('highlight') | ||||
|  | ||||
| nmap <F5> <Plug>(coc-rename) | ||||
|  | ||||
| xmap <leader>f  <Plug>(coc-format-selected) | ||||
| nmap <leader>f  <Plug>(coc-format-selected) | ||||
|  | ||||
| augroup mygroup | ||||
|   autocmd! | ||||
|   autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') | ||||
|   autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') | ||||
| augroup end | ||||
|  | ||||
| " rrethy/vim-hexokinase | ||||
| let g:Hexokinase_refreshEvents = ['InsertLeave'] | ||||
| let g:Hexokinase_optInPatterns = [ | ||||
|             \   'full_hex', | ||||
| @@ -76,110 +130,179 @@ let g:Hexokinase_optInPatterns = [ | ||||
| let g:Hexokinase_highlighters = ['backgroundfull'] | ||||
| autocmd VimEnter * HexokinaseTurnOn | ||||
|  | ||||
| " Vim-Mardown | ||||
| let g:vim_markdown_folding_disabled=1 | ||||
| let g:vim_markdown_no_default_key_mappings=1 | ||||
| " scrooloose/nerdtree | ||||
| map <F2> :NERDTreeToggle<CR> | ||||
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | ||||
| let g:NERDTreeWinPos = "left" | ||||
|  | ||||
| " Vim-Closetag | ||||
| let g:closetag_filenames = '*.html,*.xhtml,*.phtml' | ||||
| let g:closetag_xhtml_filenames = '*.xhtml,*.jsx' | ||||
| let g:closetag_filetypes = 'html,xhtml,phtml' | ||||
| let g:closetag_xhtml_filetypes = 'xhtml,jsx' | ||||
| let g:closetag_emptyTags_caseSensitive = 1 | ||||
| let g:closetag_regions = { | ||||
|     \ 'typescript.tsx': 'jsxRegion,tsxRegion', | ||||
|     \ 'javascript.jsx': 'jsxRegion', | ||||
|     \ } | ||||
| let g:closetag_shortcut = '>' | ||||
| let g:closetag_close_shortcut = '<leader>>' | ||||
| " sirver/ultisnips | ||||
| let g:UltiSnipsExpandTrigger="<alt-j>" | ||||
|  | ||||
| " End Plugin section | ||||
| " tpope/vim-fugitive | ||||
| nnoremap <leader>ga :Git add %:p<CR><CR> | ||||
| nnoremap <leader>gd :Git diff<CR> | ||||
| nnoremap <leader>gc :Gcommit<CR> | ||||
| nnoremap <leader>go :Git checkout<Space> | ||||
| nnoremap <leader>gh :diffget //3<CR> | ||||
| nnoremap <leader>gr :Gread<CR> | ||||
| nnoremap <leader>gu :diffget //2<CR> | ||||
| nnoremap <leader>gs :G<CR> | ||||
|  | ||||
| let mapleader ="," | ||||
| " whonore/coqtail | ||||
| function g:CoqtailHighlight() | ||||
| 	hi def CoqtailChecked guifg=#44FF44 | ||||
| 	hi def CoqtailSent guifg=#777777 | ||||
| endfunction | ||||
|  | ||||
| """ end plugin section | ||||
|  | ||||
| set go=a | ||||
| " Enable mouse for all modes | ||||
|  | ||||
| " enable mouse for all modes | ||||
| set mouse=a | ||||
| set clipboard+=unnamedplus | ||||
| " Enable command completion | ||||
|  | ||||
| " enable command completion | ||||
| set wildmode=longest,list,full | ||||
| " Setting Tab-length | ||||
|  | ||||
| " setting Tab-length | ||||
| set expandtab | ||||
| set softtabstop=4 | ||||
| set shiftwidth=4 | ||||
| " Splits open at the bottom and right, which is non-retarded, unlike vim defaults. | ||||
|  | ||||
| " splits open at the bottom and right, which is non-retarded, unlike vim defaults. | ||||
| set splitbelow splitright | ||||
| " Disable case sensitive matching | ||||
|  | ||||
| " disable case sensitive matching | ||||
| set ignorecase | ||||
| " Enable nocompatible mode | ||||
|  | ||||
| " enable nocompatible mode | ||||
| set nocompatible | ||||
| " Enable Plugins | ||||
|  | ||||
| " enable Plugins | ||||
| filetype plugin on | ||||
| " Enable syntax highlighting | ||||
|  | ||||
| " enable syntax highlighting | ||||
| syntax on | ||||
| " Enable true colors | ||||
|  | ||||
| " enable true colors | ||||
| set termguicolors | ||||
| " Set utf-8 encoding | ||||
|  | ||||
| " set utf-8 encoding | ||||
| set encoding=utf-8 | ||||
| " Show relative numbers on left side | ||||
|  | ||||
| " show relative numbers on left side | ||||
| set number relativenumber | ||||
| " Speedup vim with long lines | ||||
|  | ||||
| " speedup vim with long lines | ||||
| set ttyfast | ||||
| set lazyredraw | ||||
|  | ||||
| " textEdit might fail without hidden | ||||
| set hidden | ||||
|  | ||||
| " disable Backupfiles for Lsp | ||||
| set nobackup | ||||
| set nowritebackup | ||||
|  | ||||
| " dont pass messages to ins-completion-menu | ||||
| set shortmess+=c | ||||
|  | ||||
| " always show the signcolumn, otherwise it would shift the text each time | ||||
| " diagnostics appear/become resolved. | ||||
| if has("patch-8.1.1564") | ||||
|     " Recently vim can merge signcolumn and number column into one | ||||
|     set signcolumn=number | ||||
| else | ||||
|     set signcolumn=yes | ||||
| endif | ||||
|  | ||||
| " enable persistent undo | ||||
| if has('persistent_undo') | ||||
|     set undofile | ||||
|     set undodir=$XDG_CACHE_HOME/vim/undo | ||||
| endif | ||||
|  | ||||
| " Delete trailing whitespaces on save | ||||
| " unmap unwanted commands | ||||
| nnoremap <F1> <NOP> | ||||
| nnoremap <F9> <NOP> | ||||
| nnoremap <F10> <NOP> | ||||
| nnoremap <F11> <NOP> | ||||
| nnoremap <F12> <NOP> | ||||
|  | ||||
| inoremap <F2> <NOP> | ||||
| inoremap <F3> <NOP> | ||||
| inoremap <F4> <NOP> | ||||
| inoremap <F5> <NOP> | ||||
| inoremap <F6> <NOP> | ||||
| inoremap <F7> <NOP> | ||||
| inoremap <F8> <NOP> | ||||
| inoremap <F9> <NOP> | ||||
| inoremap <F10> <NOP> | ||||
| inoremap <F11> <NOP> | ||||
| inoremap <F12> <NOP> | ||||
|  | ||||
| " mapping Dictionaries | ||||
| nnoremap <F6> :setlocal spell! spelllang=de_de<CR> | ||||
| nnoremap <F7> :setlocal spell! spelllang=en_us<CR> | ||||
|  | ||||
| " compiler for languages | ||||
| nnoremap <leader>c :w! \| !compiler <c-r>%<CR> | ||||
|  | ||||
| " open corresponding file (pdf/html/...) | ||||
| nnoremap <leader>p :!opout <c-r>%<CR><CR> | ||||
|  | ||||
| " shortcut for split navigation | ||||
| nnoremap <C-h> <C-w>h | ||||
| nnoremap <C-j> <C-w>j | ||||
| nnoremap <C-k> <C-w>k | ||||
| nnoremap <C-l> <C-w>l | ||||
|  | ||||
| " save file as sudo on files that require root permission | ||||
| cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! | ||||
|  | ||||
| " alias for replacing | ||||
| nnoremap <leader>ss :%s//gI<Left><Left><Left> | ||||
|  | ||||
| " delete trailing whitespaces on save | ||||
| fun! TrimWhitespace() | ||||
|     let l:save = winsaveview() | ||||
|     keeppatterns %s/\s\+$//e | ||||
|     call winrestview(l:save) | ||||
| endfun | ||||
| autocmd BufWritePre * :call TrimWhitespace() | ||||
| " Disables automatic commenting on newline: | ||||
| autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o | ||||
| " Clean LaTex build files | ||||
| autocmd VimLeave *.tex !texclear % | ||||
| " Read files correctly | ||||
|  | ||||
| " read files correctly | ||||
| autocmd BufRead,BufNewFile *.tex set filetype=tex | ||||
| autocmd BufRead,BufNewFile *.html set filetype=html | ||||
| autocmd BufRead,BufNewFile *.h set filetype=c | ||||
|  | ||||
| " Mapping Dictionaries | ||||
| map <F5> :setlocal spell! spelllang=de_de<CR> | ||||
| map <F6> :set spelllang=en_us<CR> | ||||
| " Compiler for languages | ||||
| map <leader>c :w! \| !compiler <c-r>%<CR> | ||||
| " Open corresponding file (pdf/html/...) | ||||
| map <leader>p :!opout <c-r>%<CR><CR> | ||||
| " Shortcut for split navigation | ||||
| map <C-h> <C-w>h | ||||
| map <C-j> <C-w>j | ||||
| map <C-k> <C-w>k | ||||
| map <C-l> <C-w>l | ||||
| " Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed): | ||||
| map <C-p> "+P | ||||
| vnoremap <C-c> "+y | ||||
| " Save file as sudo on files that require root permission | ||||
| cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! | ||||
| " Alias for replacing | ||||
| nnoremap S :%s//gI<Left><Left><Left> | ||||
|  | ||||
| " Start Formatting section | ||||
|  | ||||
| autocmd FileType java,python,c,tex,latex noremap <F8> gggqG | ||||
|  | ||||
| au FileType python setlocal formatprg=autopep8\ - | ||||
|  | ||||
| au FileType java setlocal formatprg=astyle\ --indent=spaces=2\ --style=google | ||||
| " formatting options | ||||
| autocmd FileType java setlocal shiftwidth=2 softtabstop=2 | ||||
|  | ||||
| au FileType c setlocal formatprg=astyle\ --mode=c | ||||
| " formatting programs | ||||
| autocmd FileType c setlocal formatprg=astyle\ --mode=c\ --style=ansi | ||||
| autocmd FileType c noremap <F8> gggqG | ||||
| autocmd FileType html noremap <F8> :silent %!tidy -q -i --show-errors 0 <CR> | ||||
| autocmd FileType java setlocal formatprg=astyle\ --indent=spaces=2\ --style=google | ||||
| autocmd FileType java noremap <F8> gggqG | ||||
| autocmd FileType markdown noremap <F8> :silent %!prettier --stdin-filepath % <CR> | ||||
| autocmd FileType python setlocal formatprg=autopep8\ - | ||||
| autocmd FileType python noremap <F8> gggqG | ||||
| autocmd FileType tex,latex setlocal formatprg=latexindent\ - | ||||
| autocmd FileType tex,latex noremap <F8> gggqG | ||||
|  | ||||
| au FileType tex,latex setlocal formatprg=latexindent\ - | ||||
| " cleanup certain files after leaving the editor | ||||
| autocmd VimLeave *.tex !texclear % | ||||
| autocmd VimLeave *.c !cclear | ||||
|  | ||||
| " End Formatting section | ||||
| " highlighting break line | ||||
| autocmd BufEnter,FileType c set colorcolumn=80 | ||||
| autocmd BufEnter,FileType java set colorcolumn=100 | ||||
| autocmd BufEnter,FileType markdown set colorcolumn=80 | ||||
| autocmd BufEnter,FileType python set colorcolumn=80 | ||||
|  | ||||
| " colorscheme | ||||
| set background=dark | ||||
| colorscheme codedark | ||||
| highlight colorcolumn guibg=#772222 | ||||
|   | ||||
| @@ -1,220 +0,0 @@ | ||||
| # This file is NOT licensed under the GPLv3, which is the license for the rest | ||||
| # of YouCompleteMe. | ||||
| # | ||||
| # Here's the license text for this file: | ||||
| # | ||||
| # This is free and unencumbered software released into the public domain. | ||||
| # | ||||
| # Anyone is free to copy, modify, publish, use, compile, sell, or | ||||
| # distribute this software, either in source code form or as a compiled | ||||
| # binary, for any purpose, commercial or non-commercial, and by any | ||||
| # means. | ||||
| # | ||||
| # In jurisdictions that recognize copyright laws, the author or authors | ||||
| # of this software dedicate any and all copyright interest in the | ||||
| # software to the public domain. We make this dedication for the benefit | ||||
| # of the public at large and to the detriment of our heirs and | ||||
| # successors. We intend this dedication to be an overt act of | ||||
| # relinquishment in perpetuity of all present and future rights to this | ||||
| # software under copyright law. | ||||
| # | ||||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||
| # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
| # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||||
| # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||||
| # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||||
| # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||||
| # OTHER DEALINGS IN THE SOFTWARE. | ||||
| # | ||||
| # For more information, please refer to <http://unlicense.org/> | ||||
|  | ||||
| from distutils.sysconfig import get_python_inc | ||||
| import os | ||||
| import platform | ||||
| import os.path as p | ||||
| import subprocess | ||||
|  | ||||
| DIR_OF_THIS_SCRIPT = p.abspath( p.dirname( __file__ ) ) | ||||
| DIR_OF_THIRD_PARTY = p.join( DIR_OF_THIS_SCRIPT, 'third_party' ) | ||||
| SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ] | ||||
|  | ||||
| database = None | ||||
|  | ||||
| # These are the compilation flags that will be used in case there's no | ||||
| # compilation database set (by default, one is not set). | ||||
| # CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR. | ||||
| flags = [ | ||||
| '-Wall', | ||||
| '-Wextra', | ||||
| '-Werror', | ||||
| '-Wno-long-long', | ||||
| '-Wno-variadic-macros', | ||||
| '-fexceptions', | ||||
| '-DNDEBUG', | ||||
| # You 100% do NOT need -DUSE_CLANG_COMPLETER and/or -DYCM_EXPORT in your flags; | ||||
| # only the YCM source code needs it. | ||||
| '-DUSE_CLANG_COMPLETER', | ||||
| '-DYCM_EXPORT=', | ||||
| # THIS IS IMPORTANT! Without the '-x' flag, Clang won't know which language to | ||||
| # use when compiling headers. So it will guess. Badly. So C++ headers will be | ||||
| # compiled as C headers. You don't want that so ALWAYS specify the '-x' flag. | ||||
| # For a C project, you would set this to 'c' instead of 'c++'. | ||||
| '-x', | ||||
| 'c++', | ||||
| '-isystem', | ||||
| 'cpp/pybind11', | ||||
| '-isystem', | ||||
| 'cpp/whereami', | ||||
| '-isystem', | ||||
| 'cpp/BoostParts', | ||||
| '-isystem', | ||||
| get_python_inc(), | ||||
| '-isystem', | ||||
| 'cpp/llvm/include', | ||||
| '-isystem', | ||||
| 'cpp/llvm/tools/clang/include', | ||||
| '-I', | ||||
| 'cpp/ycm', | ||||
| '-I', | ||||
| 'cpp/ycm/ClangCompleter', | ||||
| '-isystem', | ||||
| 'cpp/ycm/tests/gmock/gtest', | ||||
| '-isystem', | ||||
| 'cpp/ycm/tests/gmock/gtest/include', | ||||
| '-isystem', | ||||
| 'cpp/ycm/tests/gmock', | ||||
| '-isystem', | ||||
| 'cpp/ycm/tests/gmock/include', | ||||
| '-isystem', | ||||
| 'cpp/ycm/benchmarks/benchmark/include', | ||||
| ] | ||||
|  | ||||
| # Clang automatically sets the '-std=' flag to 'c++14' for MSVC 2015 or later, | ||||
| # which is required for compiling the standard library, and to 'c++11' for older | ||||
| # versions. | ||||
| if platform.system() != 'Windows': | ||||
|   flags.append( '-std=c++11' ) | ||||
|  | ||||
|  | ||||
| # Set this to the absolute path to the folder (NOT the file!) containing the | ||||
| # compile_commands.json file to use that instead of 'flags'. See here for | ||||
| # more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html | ||||
| # | ||||
| # You can get CMake to generate this file for you by adding: | ||||
| #   set( CMAKE_EXPORT_COMPILE_COMMANDS 1 ) | ||||
| # to your CMakeLists.txt file. | ||||
| # | ||||
| # Most projects will NOT need to set this to anything; you can just change the | ||||
| # 'flags' list of compilation flags. Notice that YCM itself uses that approach. | ||||
| compilation_database_folder = '' | ||||
|  | ||||
|  | ||||
| def IsHeaderFile( filename ): | ||||
|   extension = p.splitext( filename )[ 1 ] | ||||
|   return extension in [ '.h', '.hxx', '.hpp', '.hh' ] | ||||
|  | ||||
|  | ||||
| def FindCorrespondingSourceFile( filename ): | ||||
|   if IsHeaderFile( filename ): | ||||
|     basename = p.splitext( filename )[ 0 ] | ||||
|     for extension in SOURCE_EXTENSIONS: | ||||
|       replacement_file = basename + extension | ||||
|       if p.exists( replacement_file ): | ||||
|         return replacement_file | ||||
|   return filename | ||||
|  | ||||
|  | ||||
| def PathToPythonUsedDuringBuild(): | ||||
|   try: | ||||
|     filepath = p.join( DIR_OF_THIS_SCRIPT, 'PYTHON_USED_DURING_BUILDING' ) | ||||
|     with open( filepath ) as f: | ||||
|       return f.read().strip() | ||||
|   except OSError: | ||||
|     return None | ||||
|  | ||||
|  | ||||
| def Settings( **kwargs ): | ||||
|   # Do NOT import ycm_core at module scope. | ||||
|   import ycm_core | ||||
|  | ||||
|   global database | ||||
|   if database is None and p.exists( compilation_database_folder ): | ||||
|     database = ycm_core.CompilationDatabase( compilation_database_folder ) | ||||
|  | ||||
|   language = kwargs[ 'language' ] | ||||
|  | ||||
|   if language == 'cfamily': | ||||
|     # If the file is a header, try to find the corresponding source file and | ||||
|     # retrieve its flags from the compilation database if using one. This is | ||||
|     # necessary since compilation databases don't have entries for header files. | ||||
|     # In addition, use this source file as the translation unit. This makes it | ||||
|     # possible to jump from a declaration in the header file to its definition | ||||
|     # in the corresponding source file. | ||||
|     filename = FindCorrespondingSourceFile( kwargs[ 'filename' ] ) | ||||
|  | ||||
|     if not database: | ||||
|       return { | ||||
|         'flags': flags, | ||||
|         'include_paths_relative_to_dir': DIR_OF_THIS_SCRIPT, | ||||
|         'override_filename': filename | ||||
|       } | ||||
|  | ||||
|     compilation_info = database.GetCompilationInfoForFile( filename ) | ||||
|     if not compilation_info.compiler_flags_: | ||||
|       return {} | ||||
|  | ||||
|     # Bear in mind that compilation_info.compiler_flags_ does NOT return a | ||||
|     # python list, but a "list-like" StringVec object. | ||||
|     final_flags = list( compilation_info.compiler_flags_ ) | ||||
|  | ||||
|     # NOTE: This is just for YouCompleteMe; it's highly likely that your project | ||||
|     # does NOT need to remove the stdlib flag. DO NOT USE THIS IN YOUR | ||||
|     # ycm_extra_conf IF YOU'RE NOT 100% SURE YOU NEED IT. | ||||
|     try: | ||||
|       final_flags.remove( '-stdlib=libc++' ) | ||||
|     except ValueError: | ||||
|       pass | ||||
|  | ||||
|     return { | ||||
|       'flags': final_flags, | ||||
|       'include_paths_relative_to_dir': compilation_info.compiler_working_dir_, | ||||
|       'override_filename': filename | ||||
|     } | ||||
|  | ||||
|   if language == 'python': | ||||
|     return { | ||||
|       'interpreter_path': PathToPythonUsedDuringBuild() | ||||
|     } | ||||
|  | ||||
|   return {} | ||||
|  | ||||
|  | ||||
| def PythonSysPath( **kwargs ): | ||||
|   sys_path = kwargs[ 'sys_path' ] | ||||
|  | ||||
|   interpreter_path = kwargs[ 'interpreter_path' ] | ||||
|   major_version = subprocess.check_output( [ | ||||
|     interpreter_path, '-c', 'import sys; print( sys.version_info[ 0 ] )' ] | ||||
|   ).rstrip().decode( 'utf8' ) | ||||
|  | ||||
|   sys_path[ 0:0 ] = [ p.join( DIR_OF_THIS_SCRIPT ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'bottle' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'cregex', | ||||
|                               'regex_{}'.format( major_version ) ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'frozendict' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'jedi_deps', 'jedi' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'jedi_deps', 'parso' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'requests_deps', 'requests' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'requests_deps', | ||||
|                                                   'urllib3', | ||||
|                                                   'src' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'requests_deps', | ||||
|                                                   'chardet' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'requests_deps', | ||||
|                                                   'certifi' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'requests_deps', | ||||
|                                                   'idna' ), | ||||
|                       p.join( DIR_OF_THIRD_PARTY, 'waitress' ) ] | ||||
|  | ||||
|   sys_path.append( p.join( DIR_OF_THIRD_PARTY, 'jedi_deps', 'numpydoc' ) ) | ||||
|   return sys_path | ||||
| @@ -46,8 +46,8 @@ function +vi-git-stash() { | ||||
|     fi | ||||
| } | ||||
| zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash | ||||
| PS1='%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}\$%b ' | ||||
| RPROMPT='%B%{$fg[magenta]%}$vcs_info_msg_0_%{$reset_color%}%b' | ||||
| PS1='%B%{$fg[blue]%}[%{$fg[blue]%}%n%{$fg[blue]%}@%{$fg[blue]%}%M %{$fg[blue]%}%~%{$fg[blue]%}]%{$reset_color%}\$%b ' | ||||
| RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b' | ||||
|  | ||||
| # History in cache directory | ||||
| HISTSIZE=10000 | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| #!/bin/bash | ||||
| # copying tex templates | ||||
|  | ||||
| latexdir=~/gitrepos/main/latextemplates/ | ||||
| latexdir=~/code/main/latextemplates/ | ||||
|  | ||||
| [ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1 | ||||
|  | ||||
|   | ||||
| @@ -3,8 +3,8 @@ | ||||
| # toggle external monitor | ||||
| # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice | ||||
|  | ||||
| intern=LVDS-1 | ||||
| extern=HDMI-2 | ||||
| intern=LVDS1 | ||||
| extern=HDMI2 | ||||
| (xrandr | grep "$extern disconnected") | ||||
| (xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit) | ||||
| (xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off | ||||
|   | ||||
							
								
								
									
										6
									
								
								.local/bin/tools/nvim/cclear
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								.local/bin/tools/nvim/cclear
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| if [ -d .ccls-cache ] | ||||
| then | ||||
|     rm -r '.ccls-cache' | ||||
| fi | ||||
| @@ -28,9 +28,10 @@ case "$file" in | ||||
| 	*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;; | ||||
| 	*\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;; | ||||
| 	*\.tex) textype "$file" ;; | ||||
|         *\.m) octave -qW "$file" ;; | ||||
| 	*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; | ||||
| 	*config.h) sudo make install ;; | ||||
|         *\.c) cc "$file" -o "$base" && "$base" ;; | ||||
|         *\.c) if [ -f Makefile ]; then make run; else cc "$file" -o "$base" && "$base"; fi ;; | ||||
| 	*\.py) python "$file" ;; | ||||
| 	*\.go) go run "$file" ;; | ||||
| 	*\.sent) setsid sent "$file" 2>/dev/null & ;; | ||||
|   | ||||
| @@ -9,6 +9,7 @@ case "$1" in | ||||
| 	file=$(readlink -f "$1") | ||||
| 	dir=$(dirname "$file") | ||||
| 	base="${file%.*}" | ||||
|         if [ -f "$dir/indent.log" ]; then rm "$dir/indent.log"; fi | ||||
| 	find "$dir"  -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(4tc|xref|tmp|pyc|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\\(busy\\)|lof|lot|maf|idx|mtc|mtc0|nav|out|snm|toc|bcf|run\\.xml|synctex\\.gz|blg|bbl)" -delete ;; | ||||
| 	*) printf "Give .tex file as argument.\\n" ;; | ||||
| esac | ||||
|   | ||||
							
								
								
									
										44
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								.profile
									
									
									
									
									
								
							| @@ -2,7 +2,7 @@ | ||||
| # Profile file. Runs on login. | ||||
|  | ||||
| # Adds `~/.local/bin` and all subdirectories to $PATH | ||||
| export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" | ||||
| export PATH="$PATH:$(du "${HOME}/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" | ||||
|  | ||||
| export BROWSER="icecat" | ||||
| export RTV_BROWSER="qutebrowser" | ||||
| @@ -13,30 +13,30 @@ export READER="zathura" | ||||
| export STATUSBAR="dwmblocks" | ||||
| export TERMINAL="st" | ||||
| export QT_QPA_PLATFORMTHEME="qt5ct" | ||||
| export WINEPREFIX="$HOME/.wine" | ||||
| export WINEPREFIX="${HOME}/.wine" | ||||
| export JAVA_HOME="/usr/lib/jvm/java-11-openjdk" | ||||
|  | ||||
| export XDG_CACHE_HOME="$HOME/.cache" | ||||
| export XDG_CONFIG_HOME="$HOME/.config" | ||||
| export XDG_DATA_HOME="$HOME/.local/share" | ||||
| export XDG_CACHE_HOME="${HOME}/.cache" | ||||
| export XDG_CONFIG_HOME="${HOME}/.config" | ||||
| export XDG_DATA_HOME="${HOME}/.local/share" | ||||
|  | ||||
| export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" | ||||
| export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" | ||||
| export GRADLE_USER_HOME="$XDG_CONFIG_HOME/gradle" | ||||
| export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" | ||||
| export HISTFILE="$XDG_CACHE_HOME/shhistory" | ||||
| export INPUTRC="$XDG_CONFIG_HOME/inputrc" | ||||
| export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" | ||||
| export ANDROID_SDK_HOME="${XDG_CONFIG_HOME}/android" | ||||
| export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg" | ||||
| export GRADLE_USER_HOME="${XDG_CONFIG_HOME}/gradle" | ||||
| export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0" | ||||
| export HISTFILE="${XDG_CACHE_HOME}/shhistory" | ||||
| export INPUTRC="${XDG_CONFIG_HOME}/inputrc" | ||||
| export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey" | ||||
| export LESSHISTFILE="-" | ||||
| export ncmpcpp_directory="-" | ||||
| export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config" | ||||
| export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" | ||||
| export NUGET_PACKAGES="$XDG_CACHE_HOME/nugetpackages" | ||||
| export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" | ||||
| export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass" | ||||
| export TMUX_TMPDIR="$XDG_CACHE_HOME/tmux" | ||||
| export WGETRC="$XDG_CONFIG_HOME/wgetrc" | ||||
| export ZDOTDIR="$XDG_CONFIG_HOME/zsh" | ||||
| export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch-config" | ||||
| export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" | ||||
| export NUGET_PACKAGES="${XDG_CACHE_HOME}/nugetpackages" | ||||
| export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass" | ||||
| export SUDO_ASKPASS="${HOME}/.local/bin/tools/dmenupass" | ||||
| export TMUX_TMPDIR="${XDG_CACHE_HOME}/tmux" | ||||
| export WGETRC="${XDG_CONFIG_HOME}/wgetrc" | ||||
| export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" | ||||
| export _JAVA_AWT_WM_NONREPARENTING=1 | ||||
|  | ||||
| # less/man colors | ||||
| @@ -49,8 +49,8 @@ export LESS_TERMCAP_se="$(printf '%b' '[0m')"; a="${a%_}" | ||||
| export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"; a="${a%_}" | ||||
| export LESS_TERMCAP_ue="$(printf '%b' '[0m')"; a="${a%_}" | ||||
|  | ||||
| echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" | ||||
| echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc" | ||||
| echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "${HOME}/.bashrc" | ||||
| echo "$0" | grep "zsh$" >/dev/null && [ -f ${ZDOTDIR}/.zshrc ] && source "${ZDOTDIR}/.zshrc" | ||||
|  | ||||
| # Start graphical server if not already running. | ||||
| [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| # .dotfiles | ||||
|  | ||||
| My Arch Linux dotfiles. | ||||
| My arch compatible user dotfiles. | ||||
| They were originally based on the dotfiles of [lukesmithxyz](https://github.com/lukesmithxyz/voidrice). | ||||
| This being some time, hundreds of commits and my personalized version of [larbs](https://github.com/TiynGER/larbs) ago, they are now quite different. | ||||
|  | ||||
| @@ -17,7 +17,7 @@ To take a look at all the software it installs look at the [progs.csv](https://g | ||||
|  | ||||
| ### clone this repository | ||||
|  | ||||
| `git clone --bare https://github.com/TiynGER/.dotfiles $HOME/.dotfiles` | ||||
| `git clone --bare https://github.com/Tiyn/dotfiles $HOME/.dotfiles` | ||||
|  | ||||
| ### checkout changes | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user