mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
Compare commits
138 Commits
vim-todo
...
38751d075b
| Author | SHA1 | Date | |
|---|---|---|---|
| 38751d075b | |||
| 034cbcfa90 | |||
| 4da67fcef8 | |||
| 03ccf57b6e | |||
| c2c06a46e4 | |||
| 331fc82c1a | |||
| 5ad43aa897 | |||
| 0f04e1831a | |||
| b129c79a37 | |||
| 8f0eac7701 | |||
| 938119d6ea | |||
| c394e8be26 | |||
| 75666f9add | |||
| cd550ea3fe | |||
| 7837b80d3b | |||
| 3c9b12b400 | |||
| 37e92734d7 | |||
| 436a28f702 | |||
| 739ab149c5 | |||
| c0ba50cf35 | |||
| 640ba449fb | |||
| df063d1f1a | |||
| a969661555 | |||
| 06e3fbc42b | |||
| b2046f2df3 | |||
| 0306806186 | |||
| c231bd9f81 | |||
| 07a53a3ae0 | |||
| e08247d55c | |||
| 78dd4a936d | |||
| b5d7771bc6 | |||
| 286796856a | |||
| 0d2830f9e4 | |||
| 7c0921a9cd | |||
| d72ebcdc5d | |||
| f9c2ebfcbd | |||
| 6a2ad74549 | |||
| 90037e0486 | |||
| c6b97e2595 | |||
| 17955520c2 | |||
| d0f0d70675 | |||
| d8d253d2fc | |||
| b33e2ad4e3 | |||
| 8ced3cb3a0 | |||
| 19beab2b85 | |||
| 9feb35ae1b | |||
| 37077ac84a | |||
| f2bebfaa3f | |||
| 6ce915a84b | |||
| 99be1b1d7f | |||
| c0497bf44c | |||
| b50d8f0d67 | |||
| 1755303858 | |||
| 430fee3e02 | |||
| 3836faaaf1 | |||
| 0c9cd7fabd | |||
| 29967f31ed | |||
| 967c20f78b | |||
| 933ac19064 | |||
| 091bfb91b5 | |||
| 4e0f71bfa5 | |||
| 2201161c19 | |||
| 800f614db5 | |||
| 4a0f0f1c23 | |||
| 5ff06e4ad3 | |||
| d4625dd8e2 | |||
| 9cef24836b | |||
| 58084b41ea | |||
| 01274819e9 | |||
| 3ef6363915 | |||
| 3bb1890b81 | |||
| 32e3d1bf89 | |||
| b32537ca36 | |||
| 52ed5b6558 | |||
| a1c2b3c692 | |||
| c420e20e56 | |||
| 72d55c14ce | |||
| 2e1bff51ea | |||
| e7e344b6ad | |||
| 13b5a8eac0 | |||
| b6553f2771 | |||
| bee15e099e | |||
| ec654b26a6 | |||
| 89d3acc10a | |||
| b8c811bce7 | |||
| 525f2e06be | |||
| b89f39b335 | |||
| 1d70c460e3 | |||
| 838aa1df81 | |||
| d9bbe483ba | |||
| e9957332e5 | |||
| d47442b87c | |||
| 4c56ee025c | |||
| a525440918 | |||
| 96e9320f89 | |||
| 92306f8125 | |||
| a39e8e6e9e | |||
| ad33a56d7b | |||
| 06de4bad70 | |||
| ea30a5fd0a | |||
| 43fd8e34f5 | |||
| bb3363ae79 | |||
| 8a36201565 | |||
| b4305f1131 | |||
| 4839507e05 | |||
| f8ea1fe55f | |||
| 00c670d0e1 | |||
| b0b09d49c8 | |||
| 8111aaf0ad | |||
| f8f695ac64 | |||
| 1508e83271 | |||
| a9d443755a | |||
| 1b52b1ed7f | |||
| 28cdfe7d3a | |||
| 8a147d485a | |||
| 92b7cbf3d8 | |||
| fed1dc4d8e | |||
| 3aa07b28c2 | |||
| 009557beb4 | |||
| 5e91c7d6af | |||
| c844099484 | |||
| 5d374082e9 | |||
| 44540b79a2 | |||
| 5d4d5a0bfa | |||
| ab722b28df | |||
| d601327458 | |||
| 18b9e5c8ec | |||
| eaa4bb7d05 | |||
| 8e7af76123 | |||
| 28234cd6a7 | |||
| 4f12b0ab9e | |||
| 358dd8e6d1 | |||
| a00697759c | |||
| eb33471478 | |||
| 2158c887cc | |||
| e0861ac757 | |||
|
|
4648ba6ff6 | ||
| 570bfcceb2 |
@@ -109,11 +109,6 @@ alias pip_upgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs
|
|||||||
# 20140908 reload tmux config
|
# 20140908 reload tmux config
|
||||||
alias tmux_reload="tmux source-file ~/.tmux.conf"
|
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
|
# 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()"'
|
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'
|
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
|
# if you're really annoyed with a runaway process
|
||||||
function fuck() {
|
function fuck() {
|
||||||
if killall -9 "$2"; then
|
if killall -9 "$2"; then
|
||||||
|
|||||||
5
.bashrc
5
.bashrc
@@ -177,6 +177,7 @@ if [ -e ~/.ssh/config.d ]; then
|
|||||||
[ -e ~/.ssh/config ] && mv ~/.ssh/config ~/.ssh/config.bak.$(date -Is)
|
[ -e ~/.ssh/config ] && mv ~/.ssh/config ~/.ssh/config.bak.$(date -Is)
|
||||||
# Lets preserve order, so you can have 00_generic 10_homestuff 20_work1 21_work2 and such
|
# Lets preserve order, so you can have 00_generic 10_homestuff 20_work1 21_work2 and such
|
||||||
find ~/.ssh/config.d/* -type f -print0 | sort -z | xargs -0 -n1 cat > ~/.ssh/config
|
find ~/.ssh/config.d/* -type f -print0 | sort -z | xargs -0 -n1 cat > ~/.ssh/config
|
||||||
|
chmod 600 ~/.ssh/config
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -217,3 +218,7 @@ export NVM_DIR="${HOME}/.nvm"
|
|||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
|
[ -f ~/.cargo/env ] && . "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
[ -f ~/.local/bin/env ] && . "$HOME/.local/bin/env"
|
||||||
|
|||||||
60
.config/beets/config.yaml
Normal file
60
.config/beets/config.yaml
Normal 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
|
||||||
@@ -3,12 +3,11 @@ set EDITOR vim
|
|||||||
|
|
||||||
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
|
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
|
||||||
|
|
||||||
if not functions -q fisher
|
#if not functions -q fisher
|
||||||
echo "Installing fisher for the first time..." >&2
|
# DO NOT ENABLE, it is a fork bomb :)
|
||||||
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
|
# echo "Installing fisher for the first time..." >&2
|
||||||
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
|
# curl -sL https://git.io/fisher | source && fisher update
|
||||||
fish -c fisher
|
#end
|
||||||
end
|
|
||||||
|
|
||||||
# Theme options for bobthefish
|
# Theme options for bobthefish
|
||||||
set -g theme_nerd_fonts yes
|
set -g theme_nerd_fonts yes
|
||||||
@@ -28,6 +27,11 @@ set -U grcplugin_ls --color
|
|||||||
if test -x ~/.local/bin
|
if test -x ~/.local/bin
|
||||||
set PATH $PATH ~/.local/bin
|
set PATH $PATH ~/.local/bin
|
||||||
end
|
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
|
if test -x ~/.dot/dotfiles/bin
|
||||||
set PATH $PATH ~/.dot/dotfiles/bin
|
set PATH $PATH ~/.dot/dotfiles/bin
|
||||||
end
|
end
|
||||||
@@ -65,6 +69,9 @@ alias la 'ls -A'
|
|||||||
alias l 'ls -CF'
|
alias l 'ls -CF'
|
||||||
alias lll 'ls --color=always -alF | less -R'
|
alias lll 'ls --color=always -alF | less -R'
|
||||||
|
|
||||||
|
alias exa 'exa --icons --header --group-directories-first'
|
||||||
|
alias exatree 'exa --icons --header --group-directories-first --long --tree'
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
alias gu "git pull --all"
|
alias gu "git pull --all"
|
||||||
alias gp "git push; git push --tags"
|
alias gp "git push; git push --tags"
|
||||||
@@ -85,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
|
## 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
|
#function ssh
|
||||||
env TERM=screen-256color ssh $argv
|
# env TERM=screen-256color ssh $argv
|
||||||
end
|
#end
|
||||||
|
|
||||||
## Grepping
|
## Grepping
|
||||||
alias findfile 'find . | grep -v .svn | grep -v .hg | grep -v .git | grep'
|
alias findfile 'find . | grep -v .svn | grep -v .hg | grep -v .git | grep'
|
||||||
@@ -120,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 pyloc 'find . -name "*.py" | xargs wc -l'
|
||||||
|
|
||||||
alias pypi_up 'python setup.py sdist --formats=zip upload -r pypi'
|
alias pypi_up 'python3 -m build; python3 -m twine upload dist/*'
|
||||||
alias pypi_sanoma 'python setup.py sdist --formats=zip upload -r sanoma'
|
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'
|
alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4'
|
||||||
|
|
||||||
@@ -158,3 +165,10 @@ function jl
|
|||||||
# Pretty print the json file used as argument, and feed it in colour to less
|
# Pretty print the json file used as argument, and feed it in colour to less
|
||||||
jq -C --indent 2 . $argv | less -R
|
jq -C --indent 2 . $argv | less -R
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Initialise starship theme
|
||||||
|
# curl -sS https://starship.rs/install.sh|sh
|
||||||
|
starship init fish | source
|
||||||
|
|
||||||
|
# https://direnv.net/
|
||||||
|
direnv hook fish | source
|
||||||
|
|||||||
9
.config/fish/fish_plugins
Normal file
9
.config/fish/fish_plugins
Normal 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
|
||||||
186
.config/starship.toml
Normal file
186
.config/starship.toml
Normal 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
25
.config/zed/settings.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
17
.gitconfig
17
.gitconfig
@@ -65,3 +65,20 @@
|
|||||||
insteadOf = "bitbucket:"
|
insteadOf = "bitbucket:"
|
||||||
[pull]
|
[pull]
|
||||||
rebase = false
|
rebase = false
|
||||||
|
[safe]
|
||||||
|
directory = /storage/emulated/0/Git/phren
|
||||||
|
directory = /storage/emulated/0/Git/divaultphren
|
||||||
|
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
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
# Vim
|
# Vim
|
||||||
.vim/bundle
|
.vim/bundle
|
||||||
|
*.spl
|
||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
|
|
||||||
|
|||||||
25
.local/share/org.gnome.Ptyxis/palettes/diginaut.palette
Normal file
25
.local/share/org.gnome.Ptyxis/palettes/diginaut.palette
Normal 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
|
||||||
|
|
||||||
@@ -28,6 +28,7 @@ virtualenv_path = find_virtualenv(['virtualenv', 'venv']) #vim.eval('ale_virtua
|
|||||||
if virtualenv_path:
|
if virtualenv_path:
|
||||||
has_pylint_django = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/pylint_django'))
|
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_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_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'))
|
has_bandit = glob.glob(os.path.join(virtualenv_path, 'lib/*/site-packages/bandit'))
|
||||||
else:
|
else:
|
||||||
@@ -43,6 +44,12 @@ else:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
has_pylint = False
|
has_pylint = False
|
||||||
|
|
||||||
|
try:
|
||||||
|
find_spec('ruff')
|
||||||
|
has_ruff = True
|
||||||
|
except ImportError:
|
||||||
|
has_ruff = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
find_spec('flake8')
|
find_spec('flake8')
|
||||||
has_flake8 = True
|
has_flake8 = True
|
||||||
@@ -58,6 +65,8 @@ else:
|
|||||||
linters = []
|
linters = []
|
||||||
if has_pylint:
|
if has_pylint:
|
||||||
linters.append('pylint')
|
linters.append('pylint')
|
||||||
|
if has_ruff:
|
||||||
|
linters.append('ruff')
|
||||||
if has_flake8:
|
if has_flake8:
|
||||||
linters.append('flake8')
|
linters.append('flake8')
|
||||||
if has_bandit:
|
if has_bandit:
|
||||||
|
|||||||
@@ -9,3 +9,13 @@ reprovisioning
|
|||||||
hardcoded
|
hardcoded
|
||||||
deduplicating
|
deduplicating
|
||||||
cruft
|
cruft
|
||||||
|
digimarks
|
||||||
|
blogmarks
|
||||||
|
backend
|
||||||
|
dammIT
|
||||||
|
isso
|
||||||
|
diginaut
|
||||||
|
Pratchett
|
||||||
|
jailbreaking
|
||||||
|
plugin
|
||||||
|
Readeck
|
||||||
|
|||||||
Binary file not shown.
@@ -159,3 +159,99 @@ Efteling
|
|||||||
wokgerecht
|
wokgerecht
|
||||||
rundersaucijs
|
rundersaucijs
|
||||||
Loïs
|
Loïs
|
||||||
|
Pfizer
|
||||||
|
gehaktsaus
|
||||||
|
aardappelkroketjes
|
||||||
|
AMD
|
||||||
|
Assetto
|
||||||
|
Corsa
|
||||||
|
Wii
|
||||||
|
gymkleding
|
||||||
|
kutweer
|
||||||
|
whoa
|
||||||
|
bistrokrieltjes
|
||||||
|
dumbbells
|
||||||
|
naproxen
|
||||||
|
nerden
|
||||||
|
E-depot
|
||||||
|
Carcassonne
|
||||||
|
groepsles
|
||||||
|
kennismakingsdag
|
||||||
|
Jira
|
||||||
|
chippies
|
||||||
|
Battlefield
|
||||||
|
webinar
|
||||||
|
phren
|
||||||
|
farfalle
|
||||||
|
streamen
|
||||||
|
ieuw
|
||||||
|
kattenpoep
|
||||||
|
kerstontbijt
|
||||||
|
ThinkPad
|
||||||
|
spelavond
|
||||||
|
comics
|
||||||
|
refinement
|
||||||
|
datacentrum
|
||||||
|
zometeen
|
||||||
|
hyper
|
||||||
|
inductieplaat
|
||||||
|
level
|
||||||
|
Europaplein
|
||||||
|
Blendle
|
||||||
|
prutten
|
||||||
|
mirai
|
||||||
|
kernel
|
||||||
|
VPN
|
||||||
|
schrapend
|
||||||
|
wastafelkraan
|
||||||
|
cracottes
|
||||||
|
cracotte
|
||||||
|
Picard
|
||||||
|
nerdcave
|
||||||
|
Röyksopp
|
||||||
|
Linnaeushof
|
||||||
|
recruiter
|
||||||
|
Decathlon
|
||||||
|
aqua
|
||||||
|
Cineworld
|
||||||
|
Panta
|
||||||
|
Rhei
|
||||||
|
hey
|
||||||
|
Zoë
|
||||||
|
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
|
||||||
|
|||||||
Binary file not shown.
@@ -22,8 +22,8 @@ syntax match todoDayKeyword "Hackathon"
|
|||||||
syntax match todoDayKeyword "hackathon"
|
syntax match todoDayKeyword "hackathon"
|
||||||
syntax match todoDayKeyword "papadag"
|
syntax match todoDayKeyword "papadag"
|
||||||
syntax match todoDayKeyword "vrije dag"
|
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 "koningsdag"
|
||||||
"syntax match todoDayKeyword "ill"
|
"syntax match todoDayKeyword "ill"
|
||||||
syntax match todoDayKeyword "ziek"
|
syntax match todoDayKeyword "ziek"
|
||||||
|
|||||||
88
.vimrc
88
.vimrc
@@ -4,7 +4,7 @@
|
|||||||
" wholesale is generally not a good idea; getting an idea to what things
|
" wholesale is generally not a good idea; getting an idea to what things
|
||||||
" actually mean and are used for is really recommended.
|
" actually mean and are used for is really recommended.
|
||||||
|
|
||||||
set shell=/bin/bash
|
set shell=bash
|
||||||
|
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
||||||
@@ -271,6 +271,15 @@ endif
|
|||||||
" https://castel.dev/post/lecture-notes-1/
|
" https://castel.dev/post/lecture-notes-1/
|
||||||
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
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)
|
" Word completion from dictionary (on ctrl+space)
|
||||||
set complete+=kspell
|
set complete+=kspell
|
||||||
|
|
||||||
@@ -284,7 +293,8 @@ map <F9> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<
|
|||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
let g:indentLine_char = '┊'
|
let g:indentLine_char = '┊'
|
||||||
"let g:indentLine_setConceal = 0
|
"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
|
" Do not conceal LaTeX symbols
|
||||||
let g:tex_conceal=""
|
let g:tex_conceal=""
|
||||||
|
|
||||||
@@ -317,9 +327,13 @@ if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not
|
|||||||
" sudo apt-get install python-dev
|
" sudo apt-get install python-dev
|
||||||
" cd ~/.vim/bundle/YouCompleteMe
|
" cd ~/.vim/bundle/YouCompleteMe
|
||||||
" ./install.py # For C-style languages: ./install.py --clang-completer
|
" ./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
|
" Latest YCM needs at least this version of vim
|
||||||
Plug 'ycm-core/YouCompleteMe'
|
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
|
else
|
||||||
" Version compatible with the vim in Debian 10 buster
|
" Version compatible with the vim in Debian 10 buster
|
||||||
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
|
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
|
||||||
@@ -376,6 +390,9 @@ endif
|
|||||||
" Improved Django handling
|
" Improved Django handling
|
||||||
Plug 'tweekmonster/django-plus.vim'
|
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
|
" Code checker. For python, install flake8 or pylint, preferably in the
|
||||||
" virtualenv. For Django support, install pylint-django
|
" virtualenv. For Django support, install pylint-django
|
||||||
@@ -384,12 +401,14 @@ nmap <leader>= <Plug>(ale_fix)
|
|||||||
" Quickly open the loclist to see syntax errors
|
" Quickly open the loclist to see syntax errors
|
||||||
nmap <leader>; :lopen<CR>
|
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_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
|
" 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']
|
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
|
" project uses Django
|
||||||
|
|
||||||
" Show errors or warnings in the statusline
|
" Show errors or warnings in the statusline
|
||||||
@@ -420,36 +439,21 @@ Plug 'skanehira/preview-markdown.vim'
|
|||||||
let g:preview_markdown_vertical = 1
|
let g:preview_markdown_vertical = 1
|
||||||
|
|
||||||
" Navigate through and from markdown files
|
" Navigate through and from markdown files
|
||||||
"Plug 'chmp/mdnav'
|
|
||||||
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
|
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
|
||||||
" Only open these local files in vim, use pyfile for all others:
|
" 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#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
|
||||||
|
" let g:mdnav#DebugMode = 'true'
|
||||||
|
|
||||||
|
|
||||||
" wiki.vim
|
" wiki.vim
|
||||||
Plug 'lervag/wiki.vim'
|
Plug 'lervag/wiki.vim'
|
||||||
" let g:wiki_root = '~/wiki'
|
" Config below, after plug#end()
|
||||||
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:
|
|
||||||
let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+'
|
|
||||||
" number of lines from the top to scan for tags
|
|
||||||
let g:wiki_tags_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>
|
|
||||||
|
|
||||||
|
|
||||||
if $USER != 'root'
|
if $USER != 'root'
|
||||||
" notational velocity with fzf: quickly search and open notes
|
" notational velocity with fzf: quickly search and open notes
|
||||||
Plug 'https://github.com/alok/notational-fzf-vim'
|
Plug 'https://github.com/alok/notational-fzf-vim'
|
||||||
let g:nv_search_paths = ['~/phren', '~/mydocs', '~/.dot/caplog']
|
let g:nv_search_paths = ['~/phren', '~/mydocs', '~/.dot/caplog', '~/divaultphren']
|
||||||
let g:nv_ignore_pattern = ['*.xml', '*.svg']
|
let g:nv_ignore_pattern = ['*.xml', '*.svg']
|
||||||
" Quickly open the search with this shortcut
|
" Quickly open the search with this shortcut
|
||||||
nmap <leader>n :NV <CR>
|
nmap <leader>n :NV <CR>
|
||||||
@@ -489,7 +493,10 @@ au BufNewFile,BufRead *.j2,*.jinja2 set ft=jinja
|
|||||||
Plug 'ludovicchabant/vim-gutentags'
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
" know when Gutentags is generating tags (prints 'TAGS' in status-line)
|
" know when Gutentags is generating tags (prints 'TAGS' in status-line)
|
||||||
set statusline+=%{gutentags#statusline()}
|
set statusline+=%{gutentags#statusline()}
|
||||||
let g:gutentags_ctags_exclude = ["*.min.*", "build", ".bundle", ".git", "log", "node_modules", "tmp", "vendor", "*.vim/bundle/*", "*.vim/plugged/*"]
|
let g:gutentags_ctags_exclude = ["*.min.*", "build", ".bundle", ".git", "log", "node_modules", ".obsidian/*", "tmp", "vendor", "*.vim/bundle/*", "*.vim/plugged/*"]
|
||||||
|
" use ripgrep to create list of files to index, which should help with
|
||||||
|
" ignoring non-versioned files, for example with .gitignore
|
||||||
|
let g:gutentags_file_list_command = 'rg --files'
|
||||||
"let g:gutentags_trace = 1
|
"let g:gutentags_trace = 1
|
||||||
|
|
||||||
|
|
||||||
@@ -521,6 +528,37 @@ nmap <leader>V :Goyo <bar> :Limelight!! <bar> :TogglePencil <CR>
|
|||||||
|
|
||||||
" All of the plugins must be added before the following line
|
" All of the plugins must be added before the following line
|
||||||
call plug#end()
|
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 ============================================================
|
" == End of plugins ============================================================
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
29
README.md
29
README.md
@@ -1,7 +1,7 @@
|
|||||||
dotfiles
|
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:
|
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).
|
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
|
## 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
|
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
|
||||||
|
|||||||
129
bin/font_update
129
bin/font_update
@@ -13,7 +13,7 @@ function install_font {
|
|||||||
|
|
||||||
IFS=$'\n'
|
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/Regular/complete/Hack Regular Nerd Font Complete Mono.ttf
|
||||||
Hack/BoldItalic/complete/Hack Bold Italic 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
|
Hack/Italic/complete/Hack Italic Nerd Font Complete Mono.ttf
|
||||||
@@ -24,34 +24,79 @@ 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/complete/Sauce Code Pro Light Nerd Font Complete Mono.ttf
|
||||||
SourceCodePro/Light-Italic/complete/Sauce Code Pro Light Italic 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
|
FONTS_FUTURA=$'Futura-Std-Bold_19042.ttf
|
||||||
Futura-Std-Bold-Oblique_19041.ttf
|
Futura-Std-Bold-Oblique_19041.ttf
|
||||||
Futura-Std-Book_19044.ttf
|
Futura-Std-Book_19044.ttf
|
||||||
Futura-Std-Book-Oblique_19043.ttf'
|
Futura-Std-Book-Oblique_19043.ttf'
|
||||||
|
|
||||||
FONTS_OVERPASS=$'overpass-bold-italic.otf
|
FONTS_OVERPASS=$'Overpass-BlackItalic.ttf
|
||||||
overpass-bold.otf
|
Overpass-Black.ttf
|
||||||
overpass-extrabold-italic.otf
|
Overpass-BoldItalic.ttf
|
||||||
overpass-extrabold.otf
|
Overpass-Bold.ttf
|
||||||
overpass-extralight-italic.otf
|
Overpass-ExtraBoldItalic.ttf
|
||||||
overpass-extralight.otf
|
Overpass-ExtraBold.ttf
|
||||||
overpass-heavy-italic.otf
|
Overpass-ExtraLightItalic.ttf
|
||||||
overpass-heavy.otf
|
Overpass-ExtraLight.ttf
|
||||||
overpass-italic.otf
|
Overpass-Italic.ttf
|
||||||
overpass-light-italic.otf
|
Overpass-LightItalic.ttf
|
||||||
overpass-light.otf
|
Overpass-Light.ttf
|
||||||
overpass-regular.otf
|
Overpass-MediumItalic.ttf
|
||||||
overpass-semibold-italic.otf
|
Overpass-Medium.ttf
|
||||||
overpass-semibold.otf
|
Overpass-Regular.ttf
|
||||||
overpass-thin-italic.otf
|
Overpass-SemiBoldItalic.ttf
|
||||||
overpass-thin.otf'
|
Overpass-SemiBold.ttf
|
||||||
|
Overpass-ThinItalic.ttf
|
||||||
|
Overpass-Thin.ttf'
|
||||||
|
|
||||||
FONTS_JETBRAINS=$'JetBrainsMono-Bold-Italic.ttf
|
FONTS_JETBRAINS=$'JetBrainsMono-BoldItalic.ttf
|
||||||
JetBrainsMono-Bold.ttf
|
JetBrainsMono-Bold.ttf
|
||||||
JetBrainsMono-ExtraBold-Italic.ttf
|
JetBrainsMono-ExtraBoldItalic.ttf
|
||||||
JetBrainsMono-ExtraBold.ttf
|
JetBrainsMono-ExtraBold.ttf
|
||||||
JetBrainsMono-Italic.ttf
|
JetBrainsMono-Italic.ttf
|
||||||
JetBrainsMono-Medium-Italic.ttf
|
JetBrainsMono-MediumItalic.ttf
|
||||||
JetBrainsMono-Medium.ttf
|
JetBrainsMono-Medium.ttf
|
||||||
JetBrainsMono-Regular.ttf'
|
JetBrainsMono-Regular.ttf'
|
||||||
|
|
||||||
@@ -88,27 +133,56 @@ Knack RegularOblique Plus Nerd File Types Plus Font Awesome Plus Octicons Plus P
|
|||||||
Knack Bold Nerd Font Complete Mono.ttf
|
Knack Bold Nerd Font Complete Mono.ttf
|
||||||
Knack Regular Nerd Font Complete Mono.ttf
|
Knack Regular Nerd Font Complete Mono.ttf
|
||||||
Knack Bold Italic Nerd Font Complete Mono.ttf
|
Knack Bold Italic Nerd Font Complete Mono.ttf
|
||||||
Knack Italic Nerd Font Complete Mono.ttf'
|
Knack Italic Nerd Font Complete Mono.ttf
|
||||||
|
overpass-bold-italic.otf
|
||||||
|
overpass-bold.otf
|
||||||
|
overpass-extrabold-italic.otf
|
||||||
|
overpass-extrabold.otf
|
||||||
|
overpass-extralight-italic.otf
|
||||||
|
overpass-extralight.otf
|
||||||
|
overpass-heavy-italic.otf
|
||||||
|
overpass-heavy.otf
|
||||||
|
overpass-italic.otf
|
||||||
|
overpass-light-italic.otf
|
||||||
|
overpass-light.otf
|
||||||
|
overpass-regular.otf
|
||||||
|
overpass-semibold-italic.otf
|
||||||
|
overpass-semibold.otf
|
||||||
|
overpass-thin-italic.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
|
if [ -e ~/.dot_is_server ]; then
|
||||||
# Update from the repo
|
# Update from the repo
|
||||||
echo "== Nerd fonts ======"
|
echo "== Nerd fonts ======"
|
||||||
|
PARENT_DIR="/stuff/system/fonts"
|
||||||
SOURCE_DIR="/stuff/system/fonts/nerd-fonts/patched-fonts"
|
SOURCE_DIR="/stuff/system/fonts/nerd-fonts/patched-fonts"
|
||||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
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"
|
cd "$SOURCE_DIR"
|
||||||
git pull --all
|
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
echo "Copied font: $FONT"
|
echo "Copied font: $FONT"
|
||||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||||
done <<< "$FONTS_CODING"
|
done <<< "$FONTS_CODING"
|
||||||
else
|
else
|
||||||
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update from the repo
|
# Update from the repo
|
||||||
echo "== Jetbrains Mono ======"
|
echo "== Jetbrains Mono ======"
|
||||||
SOURCE_DIR="/stuff/system/fonts/JetBrainsMono/ttf"
|
SOURCE_DIR="/stuff/system/fonts/JetBrainsMono/fonts/ttf"
|
||||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
DEST_DIR="/stuff/system/sync/fonts/active"
|
||||||
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||||
cd "$SOURCE_DIR"
|
cd "$SOURCE_DIR"
|
||||||
@@ -123,7 +197,7 @@ if [ -e ~/.dot_is_server ]; then
|
|||||||
|
|
||||||
# Update from the repo
|
# Update from the repo
|
||||||
echo "== Overpass ======"
|
echo "== Overpass ======"
|
||||||
SOURCE_DIR="/stuff/system/fonts/Overpass/desktop-fonts/overpass"
|
SOURCE_DIR="/stuff/system/fonts/Overpass/fonts/ttf"
|
||||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
DEST_DIR="/stuff/system/sync/fonts/active"
|
||||||
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||||
cd "$SOURCE_DIR"
|
cd "$SOURCE_DIR"
|
||||||
@@ -198,7 +272,8 @@ else
|
|||||||
done <<< "$FONTS_DELETE"
|
done <<< "$FONTS_DELETE"
|
||||||
# Just to be sure, clear and refresh your font cache and restart Firefox
|
# Just to be sure, clear and refresh your font cache and restart Firefox
|
||||||
fc-cache -f -v
|
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
|
else
|
||||||
echo "$SOURCE_DIR not found, aborting"
|
echo "$SOURCE_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
|
|||||||
48
bin/mac.sh
Executable file
48
bin/mac.sh
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Stolen from https://raw.githubusercontent.com/Cybertinus/macvendor_extractor/master/mac.sh
|
||||||
|
|
||||||
|
##########
|
||||||
|
# CONFIG #
|
||||||
|
##########
|
||||||
|
|
||||||
|
# Download from http://standards-oui.ieee.org/oui/oui.txt
|
||||||
|
ouilocation="${HOME}/.dot/oui.txt"
|
||||||
|
|
||||||
|
#################
|
||||||
|
# ACTUAL SCRIPT #
|
||||||
|
#################
|
||||||
|
|
||||||
|
if [ ! -f "${ouilocation}" ] ; then
|
||||||
|
echo "OUI location can not be found at ${ouilocation}. Have you updated the config?" 1>&2
|
||||||
|
read -p "Do you want to download it now [y/N]? " -n 1 -r
|
||||||
|
echo # (optional) move to a new line
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
|
wget https://standards-oui.ieee.org/oui/oui.txt -O "${ouilocation}"
|
||||||
|
else
|
||||||
|
echo "Aborted"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(find "${ouilocation}" -mtime +30 -print) ]]; then
|
||||||
|
echo "File ${ouilocation} is older than 30 days"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${1}" ] ; then
|
||||||
|
echo 'No mac address specified, please do so as first argument' 1>&2
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
macaddress="$(echo "${1}" | sed -e 's/[-.:]//g' | tr '[:lower:]' '[:upper:]')"
|
||||||
|
macaddress="${macaddress:0:6}"
|
||||||
|
echo -n "${1} = "
|
||||||
|
|
||||||
|
vendor="$(awk "/^${macaddress}/ {print substr(\$0,index(\$0,\$4))}" "${ouilocation}")"
|
||||||
|
if [ -z "${vendor}" ] ; then
|
||||||
|
echo "Not specified in ${ouilocation}"
|
||||||
|
else
|
||||||
|
echo "${vendor}"
|
||||||
|
fi
|
||||||
|
|
||||||
33
bin/pgadmin4
33
bin/pgadmin4
@@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PGADMINVENV="pgadmin4"
|
|
||||||
VENVDIR="$HOME/.virtualenvs/${PGADMINVENV}"
|
|
||||||
|
|
||||||
if [ ! -d "$VENVDIR" ] || [ ! -e "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py" ] || [ ! -e "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py" ]; then
|
|
||||||
if [[ -z "$VIRTUAL_ENV" ]]; then
|
|
||||||
# Only activate the virtualenv if we aren't in one already
|
|
||||||
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
|
|
||||||
mkvirtualenv "${PGADMINVENV}"
|
|
||||||
echo "Downloading the wheel from https://www.pgadmin.org/download/pgadmin-4-python-wheel/ ..."
|
|
||||||
pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.6/pip/pgadmin4-1.6-py2.py3-none-any.whl
|
|
||||||
echo "SERVER_MODE = False" >> "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install
|
|
||||||
#echo
|
|
||||||
#echo "Download the wheel from https://www.pgadmin.org/download/pgadmin-4-python-wheel/"
|
|
||||||
#echo
|
|
||||||
#echo "Install with:"
|
|
||||||
#echo "workon pgadmin4"
|
|
||||||
#echo "pip install ./pgadmin4-1.6-py2.py3-none-any.whl"
|
|
||||||
#echo "echo "SERVER_MODE = False" >> ${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py"
|
|
||||||
else
|
|
||||||
if [[ -z "$VIRTUAL_ENV" ]]; then
|
|
||||||
# Only activate the virtualenv if we aren't in one already
|
|
||||||
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
|
|
||||||
workon "${PGADMINVENV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start
|
|
||||||
python "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py"
|
|
||||||
fi
|
|
||||||
@@ -6,6 +6,5 @@ find . -type f -name '*.zip' -exec sh -c '
|
|||||||
zipdir=$(basename "$file" .zip)
|
zipdir=$(basename "$file" .zip)
|
||||||
#echo "$zipdir $file"
|
#echo "$zipdir $file"
|
||||||
unzip -d "$zipdir" "$file"
|
unzip -d "$zipdir" "$file"
|
||||||
read line </dev/tty
|
|
||||||
done
|
done
|
||||||
' sh {} +
|
' sh {} +
|
||||||
|
|||||||
3
bin/update_discord
Executable file
3
bin/update_discord
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
wget "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb
|
||||||
|
sudo dpkg -i discord.deb
|
||||||
26
bin/update_proton_ge
Executable file
26
bin/update_proton_ge
Executable 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 :)"
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd ~/mydocs/work/divault
|
cd ~/divaultplan
|
||||||
|
git pull
|
||||||
|
cd ~/divaultphren
|
||||||
|
git pull
|
||||||
|
cd ~/divaultwiki
|
||||||
git pull
|
git pull
|
||||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||||
vim -c "set nofoldenable" planning_2021.todo notes.md
|
vim -c "set nofoldenable" ~/divaultplan/planning_2025.todo ~/divaultphren/index.md ~/divaultwiki/home.md
|
||||||
|
|||||||
16
install.sh
16
install.sh
@@ -30,15 +30,14 @@ install_fish()
|
|||||||
mkdir -p "${HOME}/.config/fish/completions"
|
mkdir -p "${HOME}/.config/fish/completions"
|
||||||
curl -sL get.fisherman.sh | fish
|
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/config.fish" "${HOME}/.config/fish/"
|
||||||
ln -s "${HOME}/.dot/dotfiles/.config/fish/fishfile" "${HOME}/.config/fish/"
|
ln -s "${HOME}/.dot/dotfiles/.config/fish/fish_plugins" "${HOME}/.config/fish/"
|
||||||
ln -s "${HOME}/.dot/dotfiles/.config/fish/completions/terrible_job.fish" "${HOME}/.config/fish/completions"
|
|
||||||
ln -s "${HOME}/workspace/application_addons/cli/git-flow-completion/git.fish" "${HOME}/.config/fish/completions"
|
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/mux.fish" "${HOME}/.config/fish/completions"
|
||||||
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/tmuxinator.fish" "${HOME}/.config/fish/completions"
|
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/tmuxinator.fish" "${HOME}/.config/fish/completions"
|
||||||
echo
|
echo
|
||||||
echo "You might want to install Fisher:"
|
echo "You might want to install Fisher:"
|
||||||
echo "curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish"
|
echo "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
||||||
echo "And some plugins: fisher"
|
echo "fisher update"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,6 +128,15 @@ elif [ ! -e ~/.dot/.dot_no_fish ]; then
|
|||||||
done
|
done
|
||||||
fi
|
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
|
if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then
|
||||||
echo
|
echo
|
||||||
echo "Is this machine a server?"
|
echo "Is this machine a server?"
|
||||||
|
|||||||
Reference in New Issue
Block a user