Use XDG Standard

This commit is contained in:
js0ny 2024-11-01 12:16:59 +00:00
parent 270d7a9de8
commit fbe6495c85
17 changed files with 115 additions and 39 deletions

View file

@ -1,5 +1,5 @@
# ~/.config/conda/condarc.yaml
# New-Item -ItemType SymbolicLink -Path ~\.config\conda\.condarc -Target ~\.dotfiles\.config\conda\condarc.yaml
# mkdir -p ~/.config/conda/ && ln -s ~/.dotfiles/.config/conda/condarc.yaml ~/.config/conda/.condarc
# $XDG_CONFIG_HOME/conda/condarc.yaml
# New-Item -ItemType SymbolicLink -Path ~\.condarc -Target ~\.dotfiles\.config\conda\condarc.yaml
# ln -s $DOTFILES/.config/conda/condarc.yaml $XDG_CONFIG_HOME/conda/.condarc
# Reference: https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html
auto_activate_base: false

13
.config/git/config Normal file
View file

@ -0,0 +1,13 @@
# $XDG_CONFIG_HOME/git/config
# ln -sf $DOTFILES/.gitconfig $XDG_CONFIG_HOME/git/config
# New-Item -ItemType SymbolicLink -Path $Env:XDG_CONFIG_HOME/git/ -Value $DOTFILES\.config\git\config
[user]
name = js0ny
email = json.y@outlook.com
[core]
editor = vim
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

View file

@ -1,9 +1,28 @@
" ~/.config/ideavim/ideavimrc
" New-Item -ItemType SymbolicLink -Path ~\.config\ideavim/ideavimrc -Target ~\.dotfiles\.config/ideavim/ideavimrc
" ln -sf ~/.dotfiles/.config/ideavim/ideavimrc
"$XDG_CONFIG_HOME/ideavim/ideavimrc
" New-Item -ItemType SymbolicLink -Path ~\.ideavimrc -Target $DOTFILES\.config\ideavim\ideavimrc.vimrc
" ln -sf $DOTFILES/.config/ideavim/ideavimrc $XDG_CONFIG_HOME/ideavim/ideavimrc
""" Basic Configs """
let mapleader = " " " set <leader> to <space>
""" Colemak """
" Word wrap
noremap n gj
noremap e gk
noremap i l
" Similar position to i
noremap l i
noremap L I
" ne[k]st
noremap k n
noremap K N
" [j]ump
noremap j e
noremap J E
" Y to yank to end of line
noremap Y y$
""" Options """
" search for actions: :actionlist <patter>

View file

@ -0,0 +1,6 @@
{
"line-length": false,
"no-inline-html": false,
"no-alt-text": false,
"ul-style": { "style": "dash" }
}

View file

@ -4,5 +4,5 @@
- `j->e`, `k->n`, `h->h`, `l->i`
```sh
ln -s ~/.dotfiles/.config/nvim/ ~/.config/nvim
ln -s $DOTFILES/.config/nvim/ ~/.config/nvim
```

5
.config/pip/pip.conf Normal file
View file

@ -0,0 +1,5 @@
# $XDG_CONFIG_HOME/pip/pip.conf
# ln -sf $DOTFILES/.config/pip/pip.conf $XDG_CONFIG_HOME/pip/pip.conf
# New-Item -ItemType SymbolicLink -Path $Env:XDG_CONFIG_HOME/pip/pip.conp -Value $DOTFILES\.config\pip\pip.conf
[global]
# index-url = https://pypi.tuna.tsinghua.edu.cn/simple

24
.config/zellij/config.kdl Normal file
View file

@ -0,0 +1,24 @@
// ~/.config/zellij/config.kdl
// ln -sf $DOTFILES/.config/zellij/config.kdl ~.config/zellij/config.kdl
// https://zellij.dev/documentation/configuration
keybinds {
// keybinds are divided into modes
normal {
// bind instructions can include one or more keys (both keys will be bound separately)
// bind keys can include one or more actions (all actions will be performed with no sequential guarantees)
bind "Ctrl g" { SwitchToMode "locked"; }
bind "Ctrl p" { SwitchToMode "pane"; }
bind "Alt n" { NewPane; }
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
}
pane {
bind "h" "Left" { MoveFocus "Left"; }
bind "i" "Right" { MoveFocus "Right"; }
bind "n" "Down" { MoveFocus "Down"; }
bind "e" "Up" { MoveFocus "Up"; }
bind "p" { SwitchFocus; }
}
locked {
bind "Ctrl g" { SwitchToMode "normal"; }
}
}