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

83 Commits

Author SHA1 Message Date
bbf4df0206 Use unique tmpdir 2025-11-18 10:30:46 +01:00
48f981edce 20251008: marksman Markdown organising 2025-10-13 21:02:54 +02:00
a39cd6de00 Word, a bad one 2025-10-12 22:19:48 +02:00
680bf0196b Italics are neat 2025-09-29 15:04:23 +02:00
796ffd9e34 Toggle casing 2025-09-29 14:56:19 +02:00
38751d075b Modified Argonaut theme with black background 2025-09-25 20:20:23 +02:00
034cbcfa90 New font, based on IBM Plex Mono 2025-09-22 20:29:50 +02:00
4da67fcef8 Zed editor/IDE configs 2025-09-21 21:07:57 +02:00
03ccf57b6e Starship prompt has a TOML config file, not yaml 2025-09-19 11:44:13 +02:00
c2c06a46e4 Typofix 2025-09-18 22:19:31 +02:00
331fc82c1a Words 2025-09-06 11:49:13 +02:00
5ad43aa897 20250425: use vimdiff with merge conflicts; default git branch is 'main' 2025-05-13 13:39:24 +02:00
0f04e1831a Discord updating 2025-04-23 20:41:49 +02:00
b129c79a37 Merge branch 'master' of github.com:aquatix/dotfiles 2025-04-21 12:04:54 +02:00
8f0eac7701 20250107: Pratchett! 2025-04-21 12:04:35 +02:00
938119d6ea Merge branch 'master' of github.com:aquatix/dotfiles 2025-04-02 17:20:57 +02:00
c394e8be26 20250214: Argonaut terminal theme from Gogh 2025-04-02 17:20:53 +02:00
75666f9add Automatically install starship config when wanted 2025-04-01 16:13:08 +02:00
cd550ea3fe direnv is used by the fish configuration 2025-04-01 16:12:54 +02:00
7837b80d3b Merge branch 'master' of github.com:aquatix/dotfiles 2025-03-20 13:25:37 +01:00
3c9b12b400 20250304: word 2025-03-20 13:25:14 +01:00
37e92734d7 Words 2025-03-16 18:53:06 +01:00
436a28f702 More dependencies/good stuff 2025-02-11 18:04:53 +01:00
739ab149c5 Local binaries, like uv 2025-02-11 18:04:01 +01:00
c0ba50cf35 Packages 2025-02-10 17:06:31 +01:00
640ba449fb YouCompleteMe legacy branches for older vim versions 2025-01-26 13:55:48 +01:00
df063d1f1a 2025 2025-01-06 15:27:28 +01:00
a969661555 20241208: words 2025-01-05 22:10:05 +01:00
06e3fbc42b Good word 2024-10-19 22:55:37 +02:00
b2046f2df3 Do not conceal quotes and such 2024-09-03 14:00:12 +02:00
0306806186 Words 2024-07-21 12:33:47 +02:00
c231bd9f81 20240414: activate direnv 2024-06-12 09:09:54 +02:00
07a53a3ae0 Merge branch 'master' of github.com:aquatix/dotfiles 2024-05-31 09:22:12 +02:00
e08247d55c 20240405: word 2024-05-31 09:21:51 +02:00
78dd4a936d Source rust cargo env when available 2024-05-29 11:26:01 +02:00
b5d7771bc6 20240507: word 2024-05-29 11:24:40 +02:00
286796856a Load wiki too 2024-05-29 11:24:05 +02:00
0d2830f9e4 Some history, and starship configuration 2024-05-01 14:14:04 +02:00
7c0921a9cd 2024 2023-12-23 22:57:54 +01:00
d72ebcdc5d Better (less) spacing when no additional info is shown 2023-12-15 12:34:38 +01:00
f9c2ebfcbd Better (less) spacing when no additional info is shown 2023-12-15 12:33:15 +01:00
6a2ad74549 Merge branch 'master' of github.com:aquatix/dotfiles 2023-12-08 08:48:07 +01:00
90037e0486 20231009: for slow servers 2023-12-08 08:46:26 +01:00
c6b97e2595 curl sh command to install/update starship 2023-12-06 13:11:08 +01:00
17955520c2 Reverted styling to eliminate always-visible triangle; added numbers 2023-12-04 20:27:51 +01:00
d0f0d70675 Git status tryouts, looking pretty OK now 2023-12-04 20:20:37 +01:00
d8d253d2fc Starfish subcommand timeout of 2s instead of 500ms 2023-12-04 20:10:40 +01:00
b33e2ad4e3 Words 2023-12-04 17:13:07 +01:00
8ced3cb3a0 20231030: removed some highlights 2023-12-04 17:12:57 +01:00
19beab2b85 Show number of background(ed) jobs 2023-12-02 22:33:21 +01:00
9feb35ae1b Better dir substitution styling 2023-11-30 17:05:25 +01:00
37077ac84a More clear warning/info 2023-11-30 16:56:46 +01:00
f2bebfaa3f JetBrains mono in NerdFonts variant; clean up old files 2023-11-30 16:55:30 +01:00
6ce915a84b Show milliseconds duration, a bit darker 2023-11-30 16:20:15 +01:00
99be1b1d7f Include the Light variant of Monaspace 2023-11-30 13:37:37 +01:00
c0497bf44c Shorter max Git branch name; styled the cmd_duration 2023-11-29 23:08:33 +01:00
b50d8f0d67 Refreshed Nerd Fonts, added Monaspace Neon 2023-11-29 16:53:35 +01:00
1755303858 Command duration, Python support, better time, not always show username 2023-11-29 13:23:53 +01:00
430fee3e02 Tweaked some glyphs 2023-11-29 12:35:23 +01:00
3836faaaf1 Starship terminal prompt configuration 2023-11-29 11:16:45 +01:00
0c9cd7fabd Words 2023-11-22 15:29:35 +01:00
29967f31ed Not hardcoding path to bash makes it work on termux too 2023-10-31 14:05:54 +01:00
967c20f78b bbq'd 2023-09-22 13:58:11 +02:00
933ac19064 20230907: words 2023-09-14 07:13:32 +02:00
091bfb91b5 Support ruff as Python linter and fixer 2023-08-21 12:02:57 +02:00
4e0f71bfa5 20230610: words, good ones 2023-07-30 21:59:05 +02:00
2201161c19 Latest pypi settings 2023-06-06 13:56:38 +02:00
800f614db5 Good word 2023-05-24 23:08:23 +02:00
4a0f0f1c23 Provide some more feedback 2023-05-18 22:17:50 +02:00
5ff06e4ad3 Proton Glorious Eggroll updater 2023-05-18 22:15:28 +02:00
d4625dd8e2 Words 2023-05-11 16:11:02 +02:00
9cef24836b mc without the mouse 2023-03-11 21:29:39 +01:00
58084b41ea Word 2023-03-10 21:43:58 +01:00
01274819e9 Merge branch 'master' of github.com:aquatix/dotfiles 2023-03-10 21:43:42 +01:00
3ef6363915 Trust those repo paths 2023-03-08 16:14:47 +01:00
3bb1890b81 Trying to optimise download by shallow cloning 2023-02-28 13:30:35 +01:00
32e3d1bf89 20230125: words 2023-02-20 16:54:21 +01:00
b32537ca36 Words 2023-01-12 16:11:16 +01:00
52ed5b6558 Do not do the scree-256color thing, it breaks ssh prompt 2023-01-10 16:44:20 +01:00
a1c2b3c692 Moved work notes to their own repo 2023-01-08 12:39:12 +01:00
c420e20e56 It's 2023 baby! 2023-01-02 14:01:20 +01:00
72d55c14ce Merge branch 'master' of github.com:aquatix/dotfiles 2022-12-22 09:41:23 +01:00
2e1bff51ea 20220922: words 2022-12-22 09:40:56 +01:00
18 changed files with 502 additions and 34 deletions

View File

@@ -109,11 +109,6 @@ alias pip_upgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs
# 20140908 reload tmux config
alias tmux_reload="tmux source-file ~/.tmux.conf"
# project-oriented aliases
alias dcpvag='workon dcp; cd ~/workspace/sanoma/content-library/; vagrant ssh'
alias dcpsrc='cd ~/development/current/content-library/src/content_library/; . ~/development/env/bin/activate'
alias dcpcelery='python manage.py celery worker -Q celery -l info'
# update/install Calibre ebook manager
alias updatecalibre='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()"'
@@ -126,6 +121,9 @@ alias weather='ansiweather'
alias pypi_up='python setup.py register sdist --formats=zip upload'
# Use midnight commander without mouse being annoying
alias mc='mc -d'
# if you're really annoyed with a runaway process
function fuck() {
if killall -9 "$2"; then

View File

@@ -218,3 +218,7 @@ export NVM_DIR="${HOME}/.nvm"
export QT_AUTO_SCREEN_SCALE_FACTOR=1
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
[ -f ~/.cargo/env ] && . "$HOME/.cargo/env"
[ -f ~/.local/bin/env ] && . "$HOME/.local/bin/env"

View File

@@ -92,9 +92,9 @@ 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'
function ssh
env TERM=screen-256color ssh $argv
end
#function ssh
# env TERM=screen-256color ssh $argv
#end
## Grepping
alias findfile 'find . | grep -v .svn | grep -v .hg | grep -v .git | grep'
@@ -127,8 +127,8 @@ alias pip_upgrade "pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs
alias pyloc 'find . -name "*.py" | xargs wc -l'
alias pypi_up 'python setup.py sdist --formats=zip upload -r pypi'
alias pypi_sanoma 'python setup.py sdist --formats=zip upload -r sanoma'
alias pypi_up 'python3 -m build; python3 -m twine upload dist/*'
alias pypitest_up 'python3 -m build; python3 -m twine upload --repository testpypi dist/*'
alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4'
@@ -165,3 +165,10 @@ function jl
# Pretty print the json file used as argument, and feed it in colour to less
jq -C --indent 2 . $argv | less -R
end
# Initialise starship theme
# curl -sS https://starship.rs/install.sh|sh
starship init fish | source
# https://direnv.net/
direnv hook fish | source

186
.config/starship.toml Normal file
View File

@@ -0,0 +1,186 @@
format = """
[](#9A348E)\
$jobs\
$os\
$username\
[](bg:#DA627D fg:#9A348E)\
$directory\
[](fg:#DA627D bg:#FCA17D)\
$git_branch\
$git_status\
[](fg:#FCA17D bg:#86BBD8)\
$c\
$elixir\
$elm\
$golang\
$gradle\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$python\
$rust\
$scala\
[](fg:#86BBD8 bg:#06969A)\
$docker_context\
[](fg:#06969A bg:#33658A)\
$time\
[ ](fg:#33658A)\
$cmd_duration\
"""
# Timeout for commands executed by starship (ms)
command_timeout = 2000
# Disable the blank line at the start of the prompt
# add_newline = false
# Backgrounded processes
[jobs]
style = "bg:#9A348E"
symbol = '✦'
format = '[$number$symbol ]($style)'
# You can also replace your username with a neat symbol like  or disable this
# and use the os module below
[username]
# show_always = true
show_always = false
style_user = "bg:#9A348E"
style_root = "bg:#9A348E"
format = '[$user ]($style)'
disabled = false
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "bg:#9A348E"
disabled = true # Disabled by default
[directory]
style = "bg:#DA627D"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = "󰈙"
"Downloads" = ""
"Music" = ""
"Pictures" = ""
"workspace" = ""
# Keep in mind that the order matters. For example:
# "Important Documents" = " 󰈙 "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important 󰈙 " = " 󰈙 "
[c]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[docker_context]
symbol = ""
style = "bg:#06969A"
format = '[ $symbol $context ]($style) $path'
[elixir]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[elm]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[git_branch]
symbol = ""
style = "bg:#FCA17D"
truncation_length = 30
format = '[ $symbol $branch ]($style)'
[git_status]
ahead = '⇡${count}'
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
behind = '⇣${count}'
#    
style = "bg:#FCA17D"
# style = "bg:#fb7d4b"
# style = "bg:#fb7d4b fg:#ff0000"
# style = "fg:#000000 bg:#FCA17D"
# style = "fg:#ff0000 bg:#FCA17D"
# staged = ''
# modified = ''
# untracked = '?'
# format = '[$all_status$ahead_behind ]($style)'
format = '[$all_status$ahead_behind]($style)'
# format = '[$all_status$ahead_behind]($style)[ ](bg:#FCA17D)'
# format = '[$all_status$ahead_behind]($style)[ ](bg:#FCA17D)'
# format = '[](bg:#fb7d4b fg:#FCA17D)[$all_status$ahead_behind]($style)[](bg:#FCA17D fg:#fb7d4b)'
[golang]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[gradle]
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[haskell]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[java]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[julia]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[nodejs]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[nim]
symbol = "󰆥"
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[python]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $virtualenv) ]($style)'
[rust]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[scala]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol( $version) ]($style)'
[cmd_duration]
min_time = 2000
show_milliseconds = true
#format = ' $duration ($style)'
format = '[](fg:#333333)[$duration](bg:#333333)[](fg:#333333) ($style)'
[time]
disabled = false
# time_format = "%R" # Hour:Minute Format
time_format = "%T" # Hour:Minute:Second Format
style = "bg:#33658A"
format = '[ $time ]($style)'

25
.config/zed/settings.json Normal file
View File

@@ -0,0 +1,25 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"vim_mode": true,
"icon_theme": "Material Icon Theme",
"base_keymap": "JetBrains",
"ui_font_size": 16,
"buffer_font_size": 15,
"terminal": {
"font_family": "MonaspiceNe Nerd Font Mono",
"font_size": 15,
"line_height": "standard"
},
"theme": {
"mode": "dark",
"light": "One Light",
"dark": "Zedokai Darker"
}
}

View File

@@ -71,3 +71,14 @@
directory = /storage/emulated/0/Git/mydocs
directory = /data/data/com.termux/files/home/.dot/dotfiles/
directory = /storage/emulated/0/Git/dammit.nl
directory = /mnt/chromeos/PlayFiles/Documents/phren
directory = /mnt/chromeos/PlayFiles/Documents/divaultphren
directory = /mnt/chromeos/PlayFiles/Documents/mydocs
#[http]
# postBuffer = 1048576000
# lowSpeedLimit = 0
# lowSpeedTime = 999999
[init]
defaultBranch = main
[merge]
tool = vimdiff

View File

@@ -0,0 +1,25 @@
[Palette]
Name=Diginaut
Background=#000000
Foreground=#FFFAF4
Cursor=#FFFAF4
Color0=#232323
Color1=#FF000F
Color2=#8CE10B
Color3=#FFB900
Color4=#008DF8
Color5=#6D43A6
Color6=#00D8EB
Color7=#FFFFFF
Color8=#444444
Color9=#FF2740
Color10=#ABE15B
Color11=#FFD242
Color12=#0092FF
Color13=#9A5FEB
Color14=#67FFF0
Color15=#FFFFFF
# This file was generated from https://github.com/Gogh-Co/Gogh/tree/master/themes/Argonaut.yml
# Modified by aquatix/diginaut

View File

@@ -28,6 +28,7 @@ virtualenv_path = find_virtualenv(['virtualenv', 'venv']) #vim.eval('ale_virtua
if virtualenv_path:
has_pylint_django = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/pylint_django'))
has_pylint = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/pylint'))
has_ruff = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/ruff'))
has_flake8 = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/flake8'))
has_bandit = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/bandit'))
else:
@@ -43,6 +44,12 @@ else:
except ImportError:
has_pylint = False
try:
find_spec('ruff')
has_ruff = True
except ImportError:
has_ruff = False
try:
find_spec('flake8')
has_flake8 = True
@@ -58,6 +65,8 @@ else:
linters = []
if has_pylint:
linters.append('pylint')
if has_ruff:
linters.append('ruff')
if has_flake8:
linters.append('flake8')
if has_bandit:

View File

@@ -9,3 +9,14 @@ reprovisioning
hardcoded
deduplicating
cruft
digimarks
blogmarks
backend
dammIT
isso
diginaut
Pratchett
jailbreaking
plugin
Readeck
enshittification

View File

@@ -210,6 +210,9 @@ Picard
nerdcave
Röyksopp
Linnaeushof
recruiter
Decathlon
aqua
Cineworld
Panta
Rhei
@@ -219,3 +222,36 @@ voilà
Daan's
Pinkeltje
awesome
webhaak
klassendienst
rewrite
Plex
automagiseren
slaapmasker
puntpaprika
Roblox
Samsung
Galaxy
iPad
Matt
powernap
Nordschleife
hackathons
hackathon
knakkende
etensgeluiden
gebarbecuede
WTF
syncthing
Madurodam
fietsrit
multifactorauthenticatie
SSO-gebruikers
hacktop
computerwerk
labwerk
PowerPoint
Kubuntu
Ichthus
Castor
JungleTrain

View File

@@ -22,8 +22,8 @@ syntax match todoDayKeyword "Hackathon"
syntax match todoDayKeyword "hackathon"
syntax match todoDayKeyword "papadag"
syntax match todoDayKeyword "vrije dag"
syntax match todoDayKeyword "vrij"
syntax match todoDayKeyword "Vrij"
"syntax match todoDayKeyword "vrij"
"syntax match todoDayKeyword "Vrij"
syntax match todoDayKeyword "koningsdag"
"syntax match todoDayKeyword "ill"
syntax match todoDayKeyword "ziek"
@@ -51,16 +51,16 @@ highlight scratchThis ctermfg=Grey guifg=#666666
" Task statuses
syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote
syntax match todoNote "\v^ .*$" nextgroup=todoNote
highlight todoNote ctermfg=Grey guifg=#666666
highlight todoNote ctermfg=Grey guifg=#666666 cterm=italic
syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite
highlight todoStatusDone ctermfg=green guifg=#00ff00
syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00 cterm=italic
syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf cterm=italic
syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite
highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff
@@ -70,7 +70,7 @@ highlight todoStatusTodo ctermfg=red guifg=#ff0000
syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite
syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f cterm=italic
syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite
highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff

37
.vimrc
View File

@@ -4,7 +4,7 @@
" wholesale is generally not a good idea; getting an idea to what things
" actually mean and are used for is really recommended.
set shell=/bin/bash
set shell=bash
set encoding=utf-8
@@ -293,7 +293,8 @@ map <F9> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<
Plug 'Yggdroot/indentLine'
let g:indentLine_char = '┊'
"let g:indentLine_setConceal = 0
let g:indentLine_conceallevel = 1
"let g:indentLine_conceallevel = 1
let g:indentLine_conceallevel = 0
" Do not conceal LaTeX symbols
let g:tex_conceal=""
@@ -326,9 +327,13 @@ 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
if has('patch-8.1.2269')
if has('patch-9.1.0016')
" Latest YCM needs at least this version of vim
Plug 'ycm-core/YouCompleteMe'
elseif has('8.2.3995')
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim-8.2' }
elseif has('8.1.2269')
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim-8.1' }
else
" Version compatible with the vim in Debian 10 buster
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
@@ -396,12 +401,14 @@ nmap <leader>= <Plug>(ale_fix)
" Quickly open the loclist to see syntax errors
nmap <leader>; :lopen<CR>
let g:ale_maximum_file_size = 500000 " Don't lint large files (> 500KB), it can slow things down
let g:ale_fixers = {}
"let g:ale_fixers = {}
let g:ale_fixers = { '*': ['remove_trailing_lines', 'trim_whitespace'], }
" Python specific settings
let g:ale_fixers.python = ['isort']
let g:ale_fixers.python = ['isort', 'ruff', 'black']
" JS specific settings
let g:ale_fixers.javascript = ['eslint', 'prettier']
" See VIMHOME/after/ftplugin/python.vim for some pylint configuration, also checking whether a
" See VIMHOME/after/ftplugin/python.vim for some linting configuration, also checking whether a
" project uses Django
" Show errors or warnings in the statusline
@@ -442,6 +449,9 @@ let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
Plug 'lervag/wiki.vim'
" Config below, after plug#end()
" marksman LSP integration (ALE) for advanced Markdown organising
Plug 'artempyanykh/marksman'
if $USER != 'root'
" notational velocity with fzf: quickly search and open notes
@@ -579,6 +589,21 @@ fun! TrimWhitespace()
endfun
command! TrimWhitespace call TrimWhitespace()
" Visually select text then press ~ to convert the text to UPPER CASE, then to lower case, then to Title Case.
" Keep pressing ~ until you get the case you want.
" https://vim.fandom.com/wiki/Switching_case_of_characters
function! TwiddleCase(str)
if a:str ==# toupper(a:str)
let result = tolower(a:str)
elseif a:str ==# tolower(a:str)
let result = substitute(a:str,'\(\<\w\+\>\)', '\u\1', 'g')
else
let result = toupper(a:str)
endif
return result
endfunction
vnoremap ~ y:call setreg('', TwiddleCase(@"), getregtype(''))<CR>gv""Pgv
" enable words completion
set dictionary+=/usr/share/dict/words
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k

View File

@@ -1,7 +1,7 @@
dotfiles
========
After having my homedirs in subversion for years, moved this collection to Git in 2014 and standardised over all my machines.
After having my homedirs in subversion for years, moved this collection to Git [in 2014](https://github.com/aquatix/dotfiles/commit/18c02056381e7c44dd220f6cd54182ce3f040104) and standardised over all my machines (servers, desktops, laptops, phones, tablets).
To install:
@@ -27,6 +27,33 @@ 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).
## starship prompt
By default, the included fish shell configuration installs and uses the bobthefish prompt, but I have been using the [starship](https://starship.rs/) prompt [since November 2023](https://github.com/aquatix/dotfiles/commit/3836faaaf1e1207ee122eb3b72aa3cab27b4f1f7) and [configuration is included](https://github.com/aquatix/dotfiles/blob/master/.config/starship.toml).
To use, [install starship](https://starship.rs/#quick-install) and link the configuration to activate the configured prompt:
```bash
cd ~/.config
ln -s ../.dot/dotfiles/.config/starship.toml
```
## All dependencies
To have the full experience, install all of these:
```bash
sudo apt install git curl vim-nox fzf ripgrep exuberant-ctags fish grc tmux htop direnv
# needed for building vim plugins:
sudo apt install cmake build-essential
# also, this classic:
sudo apt install mc
```
and maybe install a nice colour theme for your terminal from https://gogh-co.github.io/Gogh/ - I use argonaut with a black background myself.
## 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

View File

@@ -13,7 +13,7 @@ function install_font {
IFS=$'\n'
FONTS_CODING=$'Hack/Bold/complete/Hack Bold Nerd Font Complete Mono.ttf
FONTS_CODING_OLD=$'Hack/Bold/complete/Hack Bold Nerd Font Complete Mono.ttf
Hack/Regular/complete/Hack Regular Nerd Font Complete Mono.ttf
Hack/BoldItalic/complete/Hack Bold Italic Nerd Font Complete Mono.ttf
Hack/Italic/complete/Hack Italic Nerd Font Complete Mono.ttf
@@ -24,6 +24,49 @@ SourceCodePro/Regular/complete/Sauce Code Pro Nerd Font Complete Mono.ttf
SourceCodePro/Light/complete/Sauce Code Pro Light Nerd Font Complete Mono.ttf
SourceCodePro/Light-Italic/complete/Sauce Code Pro Light Italic Nerd Font Complete Mono.ttf'
FONTS_CODING=$'HackNerdFontMono-BoldItalic.ttf
HackNerdFontMono-Bold.ttf
HackNerdFontMono-Italic.ttf
HackNerdFontMono-Regular.ttf
FiraCodeNerdFontMono-Bold.ttf
FiraCodeNerdFontMono-Light.ttf
FiraCodeNerdFontMono-Medium.ttf
FiraCodeNerdFontMono-Regular.ttf
FiraCodeNerdFontMono-Retina.ttf
FiraCodeNerdFontMono-SemiBold.ttf
JetBrainsMonoNerdFontMono-BoldItalic.ttf
JetBrainsMonoNerdFontMono-Bold.ttf
JetBrainsMonoNerdFontMono-ExtraBoldItalic.ttf
JetBrainsMonoNerdFontMono-ExtraBold.ttf
JetBrainsMonoNerdFontMono-ExtraLightItalic.ttf
JetBrainsMonoNerdFontMono-ExtraLight.ttf
JetBrainsMonoNerdFontMono-Italic.ttf
JetBrainsMonoNerdFontMono-LightItalic.ttf
JetBrainsMonoNerdFontMono-Light.ttf
JetBrainsMonoNerdFontMono-MediumItalic.ttf
JetBrainsMonoNerdFontMono-Medium.ttf
JetBrainsMonoNerdFontMono-Regular.ttf
JetBrainsMonoNerdFontMono-SemiBoldItalic.ttf
JetBrainsMonoNerdFontMono-SemiBold.ttf
JetBrainsMonoNerdFontMono-ThinItalic.ttf
JetBrainsMonoNerdFontMono-Thin.ttf
LilexNerdFont-BoldItalic.ttf
LilexNerdFont-Bold.ttf
LilexNerdFont-ExtraLightItalic.ttf
LilexNerdFont-ExtraLight.ttf
LilexNerdFont-Italic.ttf
LilexNerdFont-MediumItalic.ttf
LilexNerdFont-Medium.ttf
LilexNerdFont-Regular.ttf
LilexNerdFont-ThinItalic.ttf
LilexNerdFont-Thin.ttf
MonaspiceNeNerdFontMono-BoldItalic.otf
MonaspiceNeNerdFontMono-Bold.otf
MonaspiceNeNerdFontMono-Italic.otf
MonaspiceNeNerdFontMono-LightItalic.otf
MonaspiceNeNerdFontMono-Light.otf
MonaspiceNeNerdFontMono-Regular.otf'
FONTS_FUTURA=$'Futura-Std-Bold_19042.ttf
Futura-Std-Bold-Oblique_19041.ttf
Futura-Std-Book_19044.ttf
@@ -48,12 +91,12 @@ Overpass-SemiBold.ttf
Overpass-ThinItalic.ttf
Overpass-Thin.ttf'
FONTS_JETBRAINS=$'JetBrainsMono-Bold-Italic.ttf
FONTS_JETBRAINS=$'JetBrainsMono-BoldItalic.ttf
JetBrainsMono-Bold.ttf
JetBrainsMono-ExtraBold-Italic.ttf
JetBrainsMono-ExtraBoldItalic.ttf
JetBrainsMono-ExtraBold.ttf
JetBrainsMono-Italic.ttf
JetBrainsMono-Medium-Italic.ttf
JetBrainsMono-MediumItalic.ttf
JetBrainsMono-Medium.ttf
JetBrainsMono-Regular.ttf'
@@ -106,22 +149,35 @@ overpass-regular.otf
overpass-semibold-italic.otf
overpass-semibold.otf
overpass-thin-italic.otf
overpass-thin.otf'
overpass-thin.otf
Fira Code Bold Nerd Font Complete Mono.ttf
Fira Code Regular Nerd Font Complete Mono.ttf
Hack Bold Nerd Font Complete Mono.ttf
Hack Regular Nerd Font Complete Mono.ttf
Hack Bold Italic Nerd Font Complete Mono.ttf
Hack Italic Nerd Font Complete Mono.ttf
JetBrainsMono-Bold-Italic.ttf
JetBrainsMono-ExtraBold-Italic.ttf
JetBrainsMono-Medium-Italic.ttf'
if [ -e ~/.dot_is_server ]; then
# Update from the repo
echo "== Nerd fonts ======"
PARENT_DIR="/stuff/system/fonts"
SOURCE_DIR="/stuff/system/fonts/nerd-fonts/patched-fonts"
DEST_DIR="/stuff/system/sync/fonts/active"
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
#if [ -d "$PARENT_DIR" ] && [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
if [ -d "$PARENT_DIR" ] && [ -d "$DEST_DIR" ]; then
cd "$PARENT_DIR"
# git pull --all
#git clone --depth=1 https://github.com/ryanoasis/nerd-fonts.git
cd "$SOURCE_DIR"
git pull --all
while read -r FONT; do
echo "Copied font: $FONT"
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
done <<< "$FONTS_CODING"
else
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
fi
# Update from the repo
@@ -216,7 +272,8 @@ else
done <<< "$FONTS_DELETE"
# Just to be sure, clear and refresh your font cache and restart Firefox
fc-cache -f -v
echo 'You might want to restart your browser'
echo
echo '/!\ You might want to restart your browser and/or terminals'
else
echo "$SOURCE_DIR not found, aborting"
fi

10
bin/update_discord Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Use a uniquely named, temporary directory to download to
TMPDIR=$(mktemp -d)
wget "https://discord.com/api/download?platform=linux&format=deb" -O "${TMPDIR}/discord.deb"
sudo dpkg -i "${TMPDIR}/discord.deb"
# Clean up
rm "${TMPDIR}/discord.deb"

26
bin/update_proton_ge Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# make temp working directory
mkdir /tmp/proton-ge-custom
cd /tmp/proton-ge-custom
# download tarball
echo "Downloading tarball of latest release..."
curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz)
# download checksum
echo "Downloading checksum..."
curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .sha512sum)
# check tarball with checksum
echo "Checking..."
sha512sum -c *.sha512sum
# if result is ok, continue
# make steam directory if it does not exist
mkdir -p ~/.steam/root/compatibilitytools.d
# extract proton tarball to steam directory
echo "Extracting to Steam folder..."
tar -xf GE-Proton*.tar.gz -C ~/.steam/root/compatibilitytools.d/
echo "All done :)"

View File

@@ -1,7 +1,9 @@
#!/bin/bash
cd ~/mydocs/work/divault
cd ~/divaultplan
git pull
cd ~/divaultphren
git pull
cd ~/divaultwiki
git pull
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
vim -c "set nofoldenable" ~/mydocs/work/divault/planning_2022.todo ~/divaultphren/index.md
vim -c "set nofoldenable" ~/divaultplan/planning_2025.todo ~/divaultphren/index.md ~/divaultwiki/home.md

View File

@@ -128,6 +128,15 @@ elif [ ! -e ~/.dot/.dot_no_fish ]; then
done
fi
echo
echo "Do you wish to install the starship prompt?"
select yn in "Yes" "No"; do
case $yn in
Yes ) make_link $DIR ".config/starship.toml"; curl -sS https://starship.rs/install.sh | sh; break;;
No ) break;;
esac
done
if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then
echo
echo "Is this machine a server?"