1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

70 Commits

Author SHA1 Message Date
b4305f1131 Original mdnav repo is unmaintained, remove mention 2021-10-27 12:56:06 +02:00
4839507e05 Word 2021-10-13 21:45:51 +02:00
f8ea1fe55f The product 2021-09-22 20:45:24 +02:00
00c670d0e1 Word 2021-09-19 21:26:55 +02:00
b0b09d49c8 Word 2021-09-19 21:11:13 +02:00
8111aaf0ad Med 2021-09-19 16:32:08 +02:00
f8f695ac64 Word 2021-09-13 20:12:18 +02:00
1508e83271 Support rust apps installed locally with cargo 2021-09-05 14:09:50 +02:00
a9d443755a Moved wiki.vim config to outside the load part 2021-09-02 11:11:55 +02:00
1b52b1ed7f Parse tags: line 2021-09-01 18:52:16 +02:00
28cdfe7d3a whoa 2021-09-01 12:50:57 +02:00
8a147d485a Moar DiVault phren 2021-08-31 16:57:06 +02:00
92b7cbf3d8 Use new DiVault phren 2021-08-31 07:10:00 +02:00
fed1dc4d8e Words 2021-08-30 15:57:58 +02:00
3aa07b28c2 DiVault phren 2021-08-30 15:57:54 +02:00
009557beb4 Wiiiiii 2021-08-30 15:56:18 +02:00
5e91c7d6af Spelling file for English is also auto-generated 2021-08-23 16:07:01 +02:00
c844099484 Ignore vim generated spelling files 2021-08-23 11:06:24 +02:00
5d374082e9 Words 2021-08-23 11:05:57 +02:00
44540b79a2 Autogenerate .spl files from .add spelling files 2021-08-23 11:05:19 +02:00
5d4d5a0bfa Word 2021-08-23 10:56:16 +02:00
ab722b28df Adjusted the fisher install notes 2021-07-10 10:47:21 +02:00
d601327458 Word 2021-07-09 10:40:11 +02:00
18b9e5c8ec Current fisher cannot be installed automatically 2021-07-08 10:32:17 +02:00
eaa4bb7d05 Fisher 4.x has a new plugin file 2021-07-07 10:24:11 +02:00
8e7af76123 Latest fisher has a different config file, of course 2021-06-27 09:08:22 +02:00
28234cd6a7 Bandcamp support, block Musicbrainz by not running a local instance 2021-06-19 21:28:24 +02:00
4f12b0ab9e Singles belong to their artist 2021-06-18 21:48:28 +02:00
358dd8e6d1 If there's multiple discs, prepend tracks with the disc number 2021-06-18 15:30:48 +02:00
a00697759c This stuff is big 2021-06-18 14:29:18 +02:00
eb33471478 More logical layout 2021-06-18 14:04:32 +02:00
2158c887cc Beets has its own dir now 2021-06-18 13:37:58 +02:00
e0861ac757 Playing around with beets music manager 2021-06-18 13:29:33 +02:00
Michiel Scholten
4648ba6ff6 Merge pull request #2 from aquatix/vim-todo
Vim todo
2021-05-04 17:53:58 +02:00
570bfcceb2 Python requirements.txt syntax highlighting 2021-05-04 17:52:50 +02:00
c59ec2687a Do not hide latex symbols 2021-04-10 12:58:24 +02:00
b2fa6f46c6 20201027: attempt at supporting more Markdown in todo files 2021-03-26 12:42:15 +01:00
26d268249c 20201027: attempt at supporting more Markdown in todo files 2021-03-26 12:40:53 +01:00
0243aa351b Word 2021-03-21 14:05:19 +01:00
be22ae5d26 YCM has a vim-legacy branch now 2021-02-17 10:01:09 +01:00
afdc46f09a Regular :Files already shows preview, bind to Git Files; also show open buffers 2021-01-20 12:49:14 +01:00
071c48f38a Hello 2021 2021-01-11 10:50:33 +01:00
b5ebbe1c68 YouCompleteMe has some pretty high vim version requirement... 2021-01-08 09:01:39 +01:00
0084ea18ef Disabled EmojiOne fallback font, it makes Telegram crash 2020-12-06 15:51:18 +01:00
5bf9bc00d8 virtualfish is needed to have virtualenvwrapper magic work in fish 2020-11-16 13:31:30 +01:00
23b7a4daa7 A word a day 2020-10-26 13:22:04 +01:00
1a95a6dd3b Handy function to send push notification after long job 2020-10-25 16:15:07 +01:00
dd536a69af Removed old vimwiki config; more wiki.vim goodness 2020-10-25 15:36:06 +01:00
cacfcb08f1 Lightweight vimwiki alternative 2020-10-23 12:01:25 +02:00
08f6b4e4e6 Better support for theming in gvim 2020-10-23 11:53:19 +02:00
a7adbb5b10 Plugin from main fzf repository is needed 2020-10-19 14:18:35 +02:00
7f3e2231c7 New word 2020-08-27 22:18:30 +02:00
3450865acb Alias bat so it works for batcat 2020-08-20 10:46:35 +02:00
88f0f0a17a Updated to latest download method from website 2020-08-11 14:34:45 +02:00
d989e45356 Add yaml frontmatter support to markdown highlighting 2020-08-07 11:13:04 +02:00
3bb8761460 Merge branch 'master' of github.com:aquatix/dotfiles 2020-07-21 20:24:38 +02:00
0d82d4d81f You know, the fairytale park 2020-07-21 20:24:22 +02:00
0b76113602 Use colours in ip output 2020-07-08 15:18:19 +02:00
8dc6017b69 Default strategy for reconciling divergent branches 2020-05-25 10:19:23 +02:00
4e8c3dd959 Fixed actual ssh command 2020-05-16 22:08:48 +02:00
c06f82b8ca Use function instead of alias to fix tab completion 2020-05-11 20:29:42 +02:00
f88987b88a More info on vim configs; subheaders for subsections 2020-05-01 12:17:04 +02:00
9ef543c20e Global Git ignore file 2020-04-24 20:33:00 +02:00
303ab65529 Word 2020-04-22 14:17:19 +02:00
75579a8876 Removed old install method for virtualfish, replaced by vf install 2020-04-22 13:28:45 +02:00
e3541e9ed3 Only use these directories when regular user 2020-03-09 15:36:48 +01:00
53b8eb72de Disable vimwiki for now, it's not really needed 2020-03-09 15:34:03 +01:00
09e74b2046 vimwiki dev handles markdown links better, also on-enter linkgen 2020-03-02 14:43:07 +01:00
9098575694 Ignore some useless 'text'files; include journal into search 2020-02-26 16:40:25 +01:00
e2763c0df9 Quickly search, open, and create notes 2020-02-26 15:34:11 +01:00
19 changed files with 287 additions and 54 deletions

View File

@@ -22,6 +22,11 @@ alias lll='ls --color=always -alF | less -R'
# append history instead of overwriting:
shopt -s histappend
if command -v batcat &> /dev/null; then
# Sometimes `bat` has the binary `batcat`, like on Debian or Ubuntu
alias bat='batcat'
fi
alias findphp='find . -name "*.php" | xargs grep --color=auto'
alias findjs='find . -name "*.js" | xargs grep --color=auto'
alias findcss='find . -name "*.css" | xargs grep --color=auto'

60
.config/beets/config.yaml Normal file
View File

@@ -0,0 +1,60 @@
directory: /stuff/beets/music
library: /stuff/beets/musiclibrary.db
art_filename: cover
asciify_paths: yes
per_disc_numbering: yes
threaded: yes
paths:
# default: $albumartist/$year - $album/$track $artist - $title
default: %the{$albumartist}/$year - $album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title
#singleton: Singletons/$artist - $title
singleton: %the{$albumartist}/single - $artist - $title/$artist - $title
comp: Compilations/$album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title
albumtype:soundtrack: Soundtracks/$album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title
import:
write: yes
copy: yes
move: no
resume: ask
#incremental: yes
log: beetslog.log
ignore: .AppleDouble ._* *~ .DS_Store
plugins: [
bandcamp, # pip install beets-bandcamp
discogs,
duplicates,
embedart,
fetchart,
ftintitle,
importadded,
inline,
the,
]
discogs:
# pip install discogs-client
# Useful for classical music:
index_tracks: yes
fetchart:
# pip install requests
cautious: true
ftintitle:
auto: yes
format: (feat. {0})
importadded:
preserve_mtimes: yes
preserve_write_mtimes: yes
item_fields:
multidisc: 1 if disctotal > 1 else 0
musicbrainz:
host: localhost:5000

View File

@@ -3,15 +3,11 @@ set EDITOR vim
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
if not functions -q fisher
echo "Installing fisher for the first time..." >&2
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fish -c fisher
end
# Virtualenv support with virtualfish
eval (python3 -m virtualfish compat_aliases)
#if not functions -q fisher
# DO NOT ENABLE, it is a fork bomb :)
# echo "Installing fisher for the first time..." >&2
# curl -sL https://git.io/fisher | source && fisher update
#end
# Theme options for bobthefish
set -g theme_nerd_fonts yes
@@ -31,6 +27,11 @@ set -U grcplugin_ls --color
if test -x ~/.local/bin
set PATH $PATH ~/.local/bin
end
# Local Rust apps installed through cargo
if test -x ~/.cargo/bin
set PATH $PATH ~/.cargo/bin
end
# Scripts from my dotfiles repo
if test -x ~/.dot/dotfiles/bin
set PATH $PATH ~/.dot/dotfiles/bin
end
@@ -58,6 +59,9 @@ set -gx FZF_DEFAULT_COMMAND 'rg --files --no-ignore --hidden --follow --glob "!.
set -gx FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
set -gx FZF_ALT_C_COMMAND "$FZF_DEFAULT_COMMAND"
# Set HOSTNAME to the hostname of the device, without trailing domain name
set -x HOSTNAME (hostname | string split -m1 '.')[1]
# Aliases
## Listing
alias ll 'ls -alF'
@@ -84,7 +88,10 @@ alias gt 'git tag|less'
alias ffnightly 'env MOZ_USE_XINPUT2=1 /usr/local/bin/firefoxnightly/firefox'
## SSH, for compatibility, as our terminfo now is non-standard 'tmux-256color-italic' in tmux
alias ssh 'env TERM=xterm-256color ssh'
#alias ssh 'env TERM=xterm-256color ssh'
function ssh
env TERM=screen-256color ssh $argv
end
## Grepping
alias findfile 'find . | grep -v .svn | grep -v .hg | grep -v .git | grep'
@@ -98,11 +105,16 @@ function grepl
grep --color=always -ir $argv | less -R
end
# Sometimes `bat` has the binary `batcat`, like on Debian or Ubuntu
alias bat (command -v batcat || echo bat)
function rgl
rg -p $argv | less -RFX
end
## Various
alias ip 'ip -c'
#alias tmux 'tmux -2'
alias tmux_reload "tmux source-file ~/.tmux.conf"
alias tmux_takeover "tmux detach -a"
@@ -128,6 +140,24 @@ function rgvim
end
end
function imready
# Get return status and run time of last command, to be used with long-running jobs
# e.g.: longrunning.sh; imready
set laststatus $status
if test $status = 0
set result "success"
else
set result "failed with result $laststatus"
end
set duration (echo "$CMD_DURATION 1000" | awk '{printf "%.3fs", $1 / $2}')
set resulttext "Result of command: $result (took: $duration)"
# Send a push message with summary
if test -f "$HOME/workspace/projects/others/pushover.sh/pushover.sh"
$HOME/workspace/projects/others/pushover.sh/pushover.sh -t "[$HOSTNAME] command finished" "$resulttext"
end
end
function jl
# Pretty print the json file used as argument, and feed it in colour to less
jq -C --indent 2 . $argv | less -R

View File

@@ -0,0 +1,9 @@
jorgebucaran/fisher
edc/bass
oh-my-fish/theme-bobthefish
fisherman/fzf
fisherman/getopts
fisherman/nvm
oh-my-fish/plugin-grc
fisherman/shark
fisherman/z

View File

@@ -43,6 +43,7 @@
[core]
editor = vim
excludesfile = ~/.gitignore_global
[diff]
wsErrorHighlight = all
@@ -62,3 +63,5 @@
[url "git://bitbucket.org/"]
insteadOf = "bitbucket:"
[pull]
rebase = false

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
# Vim
.vim/bundle
*.spl
*.swp
*.swo

6
.gitignore_global Normal file
View File

@@ -0,0 +1,6 @@
# vim
*.swp
*.swo
# virtualenv
.venv

View File

@@ -0,0 +1,3 @@
unlet b:current_syntax
syntax include @Yaml syntax/yaml.vim
syntax region yamlFrontmatter start=/\%^---$/ end=/^---$/ keepend contains=@Yaml

View File

@@ -1 +1,2 @@
au BufNewFile,BufRead *.todo set filetype=todo
"au BufNewFile,BufRead *.todo set filetype=markdown

Binary file not shown.

View File

@@ -154,3 +154,24 @@ Chromebook
KlikAanKlikUit
Mandalorian
knuffelbaar
gewokte
Efteling
wokgerecht
rundersaucijs
Loïs
Pfizer
gehaktsaus
aardappelkroketjes
AMD
Assetto
Corsa
Wii
gymkleding
kutweer
whoa
bistrokrieltjes
dumbbells
naproxen
nerden
E-depot
Carcassonne

Binary file not shown.

View File

@@ -2,6 +2,11 @@ if exists("b:current_syntax")
finish
endif
runtime! syntax/html.vim
unlet! b:current_syntax
"runtime! syntax/markdown.vim
"unlet! b:current_syntax
" Keywords that we want to emphasize
"syntax keyword todoKeyword todo done important
@@ -85,6 +90,19 @@ highlight todoTitledItem ctermfg=172 guifg=#d78700
syntax match todoItem '[a-zA-Z0-9\-_]\+:' contained
highlight todoItem ctermfg=Blue guifg=#87d7ff
syn region markdownIdDeclaration matchgroup=markdownLinkDelimiter start="^ \{0,3\}!\=\[" end="\]:" oneline keepend nextgroup=markdownUrl skipwhite
syn match markdownUrl "\S\+" nextgroup=markdownUrlTitle skipwhite contained
syn region markdownUrl matchgroup=markdownUrlDelimiter start="<" end=">" oneline keepend nextgroup=markdownUrlTitle skipwhite contained
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+"+ end=+"+ keepend contained
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+'+ end=+'+ keepend contained
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+(+ end=+)+ keepend contained
syn region markdownLinkText matchgroup=markdownLinkTextDelimiter start="!\=\[\%(\_[^]]*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@=" nextgroup=markdownLink,markdownId skipwhite contains=@markdownInline,markdownLineStart
syn region markdownLink matchgroup=markdownLinkDelimiter start="(" end=")" contains=markdownUrl keepend contained
syn region markdownId matchgroup=markdownIdDelimiter start="\[" end="\]" keepend contained
syn region markdownAutomaticLink matchgroup=markdownUrlDelimiter start="<\%(\w\+:\|[[:alnum:]_+-]\+@\)\@=" end=">" keepend oneline
highlight link todoStatusDone PreProc
highlight link todoStatusDoing PreProc
highlight link todoStatusCancelled PreProc
@@ -93,6 +111,18 @@ highlight link todoStatusTodo PreProc
highlight link todoStatusImportant PreProc
highlight link todoStatusQuestion PreProc
hi def link markdownLinkText htmlLink
hi def link markdownIdDeclaration Typedef
hi def link markdownId Type
hi def link markdownAutomaticLink markdownUrl
hi def link markdownUrl Float
hi def link markdownUrlTitle String
hi def link markdownIdDelimiter markdownLinkDelimiter
hi def link markdownUrlDelimiter htmlTag
hi def link markdownUrlTitleDelimiter Delimiter
" runtime! syntax/markdown.vim
" unlet! b:current_syntax
" Syntax highlighting scheme name
let b:current_syntax = "todo"

101
.vimrc
View File

@@ -141,6 +141,7 @@ endif
" fzf integration for fast fuzzy finding, better and faster than ctrl-p
set rtp+=~/workspace/projects/others/fzf
set rtp+=/data/data/com.termux/files/usr/bin/fzf
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Customize fzf colors to match your color scheme
@@ -184,7 +185,10 @@ command! -bang -nargs=? -complete=dir FilesPreview
" \t for tags, \c for (Git) commits and \f to search through contents of files
nmap ; :Buffers<CR>
nmap <Leader>o :Files<CR>
nmap <Leader>O :FilesPreview<CR>
"nmap <Leader>O :FilesPreview<CR>
" Git files, takes .gitignore into account
nmap <Leader>O :GFiles<CR>
nmap <Leader>b :Buffers<CR>
nmap <Leader>t :Tags<CR>
nmap <Leader>c :Commits<CR>
" nmap <Leader>f :Find<CR>
@@ -200,9 +204,8 @@ nnoremap <silent> ]f :lnext<CR>
" https://github.com/ryanoasis/nerd-fonts
Plug 'ryanoasis/vim-devicons'
" Set guifont when using gvim:
"set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
set guifont=Hack\ Nerd\ Font\ Mono\ 10
"
" undotree.vim : Display your undo history in a graph.
Plug 'mbbill/undotree'
nnoremap <Leader>u :UndotreeToggle<CR>
@@ -268,6 +271,15 @@ endif
" https://castel.dev/post/lecture-notes-1/
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" Make sure .add.spl spelling files are up-to-date with their .add
" counterparts
" https://vi.stackexchange.com/questions/5050/how-to-share-vim-spellchecking-additions-between-multiple-machines
for d in glob('~/.vim/spell/*.add', 1, 1)
if filereadable(d) && (!filereadable(d . '.spl') || getftime(d) > getftime(d . '.spl'))
exec 'mkspell! ' . fnameescape(d)
endif
endfor
" Word completion from dictionary (on ctrl+space)
set complete+=kspell
@@ -282,6 +294,8 @@ Plug 'Yggdroot/indentLine'
let g:indentLine_char = '┊'
"let g:indentLine_setConceal = 0
let g:indentLine_conceallevel = 1
" Do not conceal LaTeX symbols
let g:tex_conceal=""
" Colour-match brackets
Plug 'luochen1990/rainbow'
@@ -312,7 +326,14 @@ if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not
" sudo apt-get install python-dev
" cd ~/.vim/bundle/YouCompleteMe
" ./install.py # For C-style languages: ./install.py --clang-completer
Plug 'ycm-core/YouCompleteMe'
if has('patch-8.1.2269')
" Latest YCM needs at least this version of vim
Plug 'ycm-core/YouCompleteMe'
else
" Version compatible with the vim in Debian 10 buster
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim' }
endif
" YouCompleteMe interpreter version (should be the same as what YCM was
" compiled with):
if filereadable('/data/data/com.termux/files/usr/bin/python3')
@@ -364,6 +385,9 @@ endif
" Improved Django handling
Plug 'tweekmonster/django-plus.vim'
" requirements.txt highlighter
Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}
" Code checker. For python, install flake8 or pylint, preferably in the
" virtualenv. For Django support, install pylint-django
@@ -408,34 +432,25 @@ Plug 'skanehira/preview-markdown.vim'
let g:preview_markdown_vertical = 1
" Navigate through and from markdown files
"Plug 'chmp/mdnav'
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
" Only open these local files in vim, use pyfile for all others:
let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
" let g:mdnav#DebugMode = 'true'
" vimwiki
Plug 'vimwiki/vimwiki'
let wiki_1 = {}
let wiki_1.path = '~/phren/'
let wiki_1.syntax = 'markdown'
let wiki_1.ext = '.md'
" wiki.vim
Plug 'lervag/wiki.vim'
" Config below, after plug#end()
" vimwiki-markdown
let wiki_1.template_path = '~/phren/templates/'
let wiki_1.template_default = 'default'
let wiki_1.path_html = '~/phren/site_html/'
let wiki_1.custom_wiki2html = 'vimwiki_markdown'
let wiki_1.template_ext = '.tpl'
let $VIMWIKI_MARKDOWN_EXTENSIONS = 'wikilinks'
let g:vimwiki_list = [wiki_1]
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
" Do not use vimwiki magic on non-wiki (markdown) files
let g:vimwiki_global_ext = 0
" Quick way of opening a window with backlinks to the current document
nmap <leader>wb :VimwikiBacklinks <CR>
if $USER != 'root'
" notational velocity with fzf: quickly search and open notes
Plug 'https://github.com/alok/notational-fzf-vim'
let g:nv_search_paths = ['~/phren', '~/mydocs', '~/.dot/caplog', '~/divaultphren']
let g:nv_ignore_pattern = ['*.xml', '*.svg']
" Quickly open the search with this shortcut
nmap <leader>n :NV <CR>
endif
" The NERD Commenter: A plugin that allows for easy commenting of code for
@@ -503,6 +518,37 @@ nmap <leader>V :Goyo <bar> :Limelight!! <bar> :TogglePencil <CR>
" All of the plugins must be added before the following line
call plug#end()
" wiki.vim config
let g:wiki_root = '~/phren'
let g:wiki_filetypes = ['md']
let g:wiki_link_extension = '.md'
let g:wiki_link_target_type = 'md'
" let g:wiki_mappings_use_defaults = 1
"support for #tag style tags instead of :tag: (hashes instead of colons)
runtime autoload/wiki/tags.vim
let s:tag_parser = deepcopy(g:wiki#tags#default_parser)
let s:tag_parser.re_match = '\v%(^|\s)#\zs[^# ]+'
let s:tag_parser.re_findstart = '\v%(^|\s)#\zs[^# ]+'
"let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+'
" parse tags in lines that match "tags: keyword1, keyword2" in addition to the default parser:
let g:wiki_tag_parsers = [
\ s:tag_parser,
\ {'match': {x -> x =~# '^tags: '},
\ 'parse': {x -> split(matchstr(x, '^tags:\zs.*'), '[ ,]\+')}}
\ ]
" number of lines from the top to scan for tags
let g:wiki_tag_scan_num_lines = 500
" search through the tags in the wiki
nmap <leader>wf :WikiFzfTags <CR>
" find backlinks to this document
nmap <leader>wb :WikiGraphFindBacklinks <CR>
" find in ToC/structure of the (markdown) file
nmap <leader>ft :WikiFzfToc <CR>
" == End of plugins ============================================================
@@ -559,7 +605,7 @@ set hidden
set cryptmethod=blowfish2
" Ensure 256 colour support if the terminal supports it
if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
if has("gui_running") || &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
set background=dark
let g:enable_bold_font = 1
@@ -570,6 +616,9 @@ if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &te
" create a bar for airline
set laststatus=2
let g:airline_powerline_fonts = 1
" ensure black background in gvim
highlight Normal guibg=black
endif
" This is what sets vim to use 24-bit colors. It will also work for any version of neovim

View File

@@ -13,8 +13,12 @@ cd dotfiles # this takes you to the freshly cloned ~/.dot/dotfiles
sh install.sh # follow the instructions and install the files in the homedir
```
Extra's:
# Dependency on `fzf` and ripgrep `rg`
[virtualfish](https://virtualfish.readthedocs.io/en/latest/install.html) for virtualenv(wrapper) integration in `fish` shell.
## Dependency on `fzf` and ripgrep `rg`
Both the shell configuration and vim make use of `fzf`. [fzf is a general-purpose command-line fuzzy finder](https://github.com/junegunn/fzf) and helps one 'grep' really fast through filenames. It's an alternative for the well-known `find`. Install it by cloning the repository and running the install script ([check the Installation notes too](https://github.com/junegunn/fzf#installation)).
@@ -23,11 +27,19 @@ Both the shell configuration and vim make use of `fzf`. [fzf is a general-purpos
If your distribution does not provide a package, [get yours from the releases page](https://github.com/BurntSushi/ripgrep/releases) (there's a .deb for 64-bit systems).
# Fix for shift+F6 in tmux (and screen probably)
## vim config
The [.vimrc](https://github.com/aquatix/dotfiles/blob/master/.vimrc) has a lot going on. [Find out more about my tweaks](https://dammit.nl/tag/vim.html) and use `:Maps` in vim itself to see key mappings
vim uses both `fzf` and `rg`, and also really likes having `ctags` (Exuberant Ctags) available.
## Fix for shift+F6 in tmux (and screen probably)
In tmux, do `infocmp > screen-256color`. Add the line `kf16=\E[17;2~,` and compile the file with tic. This will result in `~/.terminfo/s/screen-256color` with the correct keycode for shift+F6. `.tmux.conf` needs the line `setw -g xterm-keys on` for it to register correctly.
# ~/.git_repos config file
## ~/.git_repos config file
The `update_repos` script takes the `~/.git_repos` config file and lets you update and clone your projects automatically (or at least in a batch). In the example the first four repos are located in ~/workspace/projects/github, and the other two in workspace/projects/others and workspace/projects/private respectively; then the workspace and group are empty, so mydocs is cloned into the homedir. At the moment, only paths relative to the user's homedir are supported.
@@ -51,7 +63,8 @@ group=
ssh://myserver/srv/git/mydocs.git
```
# Interesting scripts
## Interesting scripts
| ./bin/ | description |
|------------------|-----------------------------------------------------------------------------------------|
@@ -60,7 +73,7 @@ ssh://myserver/srv/git/mydocs.git
| clean_project | Remove compiled Python files, vim swp files |
| clean_pyc | Remove compiled Python files |
| fixpermissions | chmod dirs to 755, files to 644 |
| fixpictimestamps | Change file ctime to datetime from EXIF |
| fixpictimestamps | Change file ctime to datetime from EXIF using exiftool |
| fontupdate | Update nerd-fonts; whole repo on server, link font files to ~/.local/share/fonts |
| fuz | Simple note-taking 'app' based on FZF and vim |
| git_autosave | Simple script to call from crontab or something to commit certain files in Git and push |

View File

@@ -1,2 +1,2 @@
#!/bin/bash
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

View File

@@ -76,7 +76,7 @@ Rubik-Medium.ttf
Rubik-Regular.ttf'
# https://github.com/eosrei/emojione-color-font/
FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
# FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
FONTS_DELETE=$'Sauce Code Pro Medium Plus Nerd File Types Plus Font Awesome Plus Octicons Plus Pomicons.ttf
Sauce Code Pro Bold Plus Nerd File Types Mono Plus Font Awesome Plus Octicons Plus Pomicons.ttf
@@ -179,14 +179,15 @@ else
while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_RUBIK"
while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_VARIOUS"
# while read -r FONT; do
# install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
# done <<< "$FONTS_VARIOUS"
if [ ! -e "${HOME}/.config/fontconfig" ]; then
mkdir -p "${HOME}/.config/fontconfig"
fi
if [ ! -e "${HOME}/.config/fontconfig/fonts.conf" ]; then
ln -s "${SOURCE_DIR}/fonts.conf" "${HOME}/.config/fontconfig/"
if [ -L "${HOME}/.config/fontconfig/fonts.conf" ]; then
# Remove the emoji-fallback config that causes crashes in Telegram Desktop (symlink)
rm "${HOME}/.config/fontconfig/fonts.conf"
fi
# Delete obsolete fonts
while read -r FONT; do

View File

@@ -1,5 +1,7 @@
#!/bin/bash
cd ~/mydocs/work/divault
git pull
cd ~/divaultphren
git pull
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
vim -c "set nofoldenable" planning_2020.todo notes.md
vim -c "set nofoldenable" ~/mydocs/work/divault/planning_2021.todo ~/divaultphren/index.md

View File

@@ -30,15 +30,14 @@ install_fish()
mkdir -p "${HOME}/.config/fish/completions"
curl -sL get.fisherman.sh | fish
ln -s "${HOME}/.dot/dotfiles/.config/fish/config.fish" "${HOME}/.config/fish/"
ln -s "${HOME}/.dot/dotfiles/.config/fish/fishfile" "${HOME}/.config/fish/"
ln -s "${HOME}/.dot/dotfiles/.config/fish/completions/terrible_job.fish" "${HOME}/.config/fish/completions"
ln -s "${HOME}/.dot/dotfiles/.config/fish/fish_plugins" "${HOME}/.config/fish/"
ln -s "${HOME}/workspace/application_addons/cli/git-flow-completion/git.fish" "${HOME}/.config/fish/completions"
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/mux.fish" "${HOME}/.config/fish/completions"
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/tmuxinator.fish" "${HOME}/.config/fish/completions"
echo
echo "You might want to install Fisher:"
echo "curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish"
echo "And some plugins: fisher"
echo "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
echo "fisher update"
echo
}
@@ -87,7 +86,7 @@ DATETIME=$(date +%Y%m%d_%H%M)
cd || exit
# Symlink all the things
for TARGET in .bash_aliases .bashrc bin .gitconfig .gitmodules .hgauthors.txt .hgignore .hgrc .ideavimrc .ignore .screenrc .terminfo .tmux.conf .vim .vimrc install.sh
for TARGET in .bash_aliases .bashrc bin .gitconfig .gitignore_global .gitmodules .hgauthors.txt .hgignore .hgrc .ideavimrc .ignore .screenrc .terminfo .tmux.conf .vim .vimrc install.sh
do
make_link $DIR $TARGET
done