mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Merge branch 'master' of https://www.github.com/js0ny/dotfiles
This commit is contained in:
commit
7572a99641
12 changed files with 109 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# $XDG_CONFIG_HOME/git/config
|
# $XDG_CONFIG_HOME/git/config
|
||||||
# ln -sf $DOTFILES/.config/git/.gitconfig $XDG_CONFIG_HOME/git/.config
|
# ln -sf $DOTFILES/.config/git/.gitconfig $XDG_CONFIG_HOME/git/config
|
||||||
# New-Item -ItemType SymbolicLink -Path "$Env:XDG_CONFIG_HOME\git\config" -Target "$DOTFILES\.config\git\.gitconfig"
|
# New-Item -ItemType SymbolicLink -Path "$Env:XDG_CONFIG_HOME\git\config" -Target "$DOTFILES\.config\git\.gitconfig"
|
||||||
[user]
|
[user]
|
||||||
name = js0ny
|
name = js0ny
|
||||||
|
|
|
||||||
13
.config/lesskey
Normal file
13
.config/lesskey
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# $XDG_CONFIG_HOME/lesskey -- less options
|
||||||
|
# ln -sf $DOTFILES/.config/lesskey $XDG_CONFIG_HOME/lesskey
|
||||||
|
# Ne
|
||||||
|
|
||||||
|
# Format: key action
|
||||||
|
|
||||||
|
# Arrow Remap (hnei -> hjkl)
|
||||||
|
n forw-line
|
||||||
|
e back-line
|
||||||
|
|
||||||
|
# search with k : ne[k]st
|
||||||
|
k repeat-search
|
||||||
|
K reverse-search
|
||||||
4
.config/npm/npmrc
Normal file
4
.config/npm/npmrc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
# export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||||
|
# $XDG_CONFIG_HOME/npm/npmrc
|
||||||
|
# ln -s $DOTFILES/.config/npm/npmrc $NPM_CONFIG_USERCONFIG
|
||||||
|
# registry=https://registry.npmmirror.com
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# starship.toml
|
# starship.toml
|
||||||
# ~/.config/starship.toml
|
# ~/.config/starship.toml
|
||||||
format = '''$os$time $username @ $hostname $directory $all$character'''
|
format = '''$os$time $username @ $hostname $directory $all$character'''
|
||||||
continuation_prompt = "[$ ](bold cyan) "
|
|
||||||
|
|
||||||
add_newline = true
|
add_newline = true
|
||||||
|
|
||||||
|
|
@ -18,11 +17,6 @@ show_always = true
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
ssh_symbol = ' '
|
ssh_symbol = ' '
|
||||||
|
|
||||||
[character]
|
|
||||||
success_symbol = "[$ ](bold green)"
|
|
||||||
error_symbol = "[$ ](bold red)"
|
|
||||||
vimcmd_symbol = "[: ](bold green)"
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
truncation_length = 2
|
truncation_length = 2
|
||||||
truncate_to_repo = true
|
truncate_to_repo = true
|
||||||
|
|
|
||||||
52
.config/vim/vimrc
Normal file
52
.config/vim/vimrc
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
" $XDG_CONFIG_HOME/vim/vimrc
|
||||||
|
" This is a minimal setup of vimrc
|
||||||
|
" ln -sf $DOTFILES/.config/vim/vimrc $XDG_CONFIG_HOME/vim/vimrc
|
||||||
|
|
||||||
|
" Colemak Keys
|
||||||
|
|
||||||
|
" Arrow remap
|
||||||
|
noremap n j
|
||||||
|
noremap e k
|
||||||
|
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
|
||||||
|
|
||||||
|
" Normal minimal setup
|
||||||
|
|
||||||
|
noremap Y y$
|
||||||
|
set expandtab
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set autoindent
|
||||||
|
set smartindent
|
||||||
|
set wrap
|
||||||
|
set scrolloff=3
|
||||||
|
set hlsearch
|
||||||
|
set incsearch
|
||||||
|
est ignorecase
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" XDG Directory Specifications
|
||||||
|
" Reference to https://jorenar.com/blog/vim-xdg
|
||||||
|
|
||||||
|
if empty($XDG_CACHE_HOME) | let $XDG_CACHE_HOME = $HOME."/.cache" | endif
|
||||||
|
if empty($XDG_CONFIG_HOME) | let $XDG_CONFIG_HOME = $HOME."/.config" | endif
|
||||||
|
if empty($XDG_DATA_HOME) | let $XDG_DATA_HOME = $HOME."/.local/share" | endif
|
||||||
|
if empty($XDG_STATE_HOME) | let $XDG_STATE_HOME = $HOME."/.local/state" | endif
|
||||||
|
|
||||||
|
set viminfo+=n$XDG_STATE_HOME/vim/viminfo
|
||||||
|
set packpath^=$XDG_DATA_HOME/vim
|
||||||
|
set packpath+=$XDG_DATA_HOME/vim/after
|
||||||
|
set backupdir=$XDG_STATE_HOME/vim/backup
|
||||||
|
set directory=$XDG_STATE_HOME/vim/swap
|
||||||
|
set undodir=$XDG_STATE_HOME/vim/undo
|
||||||
|
set viewdir=$XDG_STATE_HOME/vim/view
|
||||||
|
set shada+=n$XDG_STATE_HOME/vim/shada
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -19,3 +19,4 @@ test.*
|
||||||
*.tgz
|
*.tgz
|
||||||
# WindowsTerminal.json
|
# WindowsTerminal.json
|
||||||
PowerToys/
|
PowerToys/
|
||||||
|
xdg-ninja/
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// Paste this into surfingkeys advanced settings
|
// Paste this into surfingkeys advanced settings
|
||||||
// or use:
|
// or use:
|
||||||
// Load settings from: https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/surfingkeys.js
|
// Load settings from: https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/browser/surfingkeys.js
|
||||||
|
|
||||||
/** Examples
|
/** Examples
|
||||||
|
|
||||||
|
|
@ -4,4 +4,12 @@
|
||||||
|
|
||||||
# Use XDG Base Directory Specification
|
# Use XDG Base Directory Specification
|
||||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||||
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||||
|
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||||
|
|
||||||
|
# Zsh
|
||||||
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
||||||
|
|
||||||
|
# Also put in /etc/zsh/zshenv
|
||||||
|
|
|
||||||
|
|
@ -22,3 +22,29 @@ source .private.env.sh
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
# export LANG= "en_US.UTF-8"
|
# export LANG= "en_US.UTF-8"
|
||||||
|
|
||||||
|
# Use XDG Base Directory Specification
|
||||||
|
|
||||||
|
# ~/.dotnet -> $XDG_DATA_HOME/dotnet
|
||||||
|
export DOTNET_CLI_HOME="$XDG_DATA_HOME"/dotnet
|
||||||
|
# ~/.gnupg -> $XDG_CONFIG_HOME/gnupg
|
||||||
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||||
|
# ~/go -> $XDG_DATA_HOME/go
|
||||||
|
export GOPATH="$XDG_DATA_HOME"/go
|
||||||
|
# ~/.npmrc -> $XDG_CONFIG_HOME/npm/npmrc
|
||||||
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||||
|
# ~/.python_history -> $XDG_DATA_HOME/python/history
|
||||||
|
# Works only with Python 3.13.0a3 and later
|
||||||
|
export PYTHON_HISTORY="$XDG_DATA_HOME"/python/history
|
||||||
|
# ~/.w3m -> $XDG_DATA_HOME/w3m
|
||||||
|
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
||||||
|
# ~/.wakatime.cfg -> $XDG_CONFIG_HOME/wakatime.cfg
|
||||||
|
export WAKATIME_HOME="$XDG_CONFIG_HOME/wakatime"
|
||||||
|
# ~/.wget-hsts -> $XDG_DATA_HOME/wget-hsts
|
||||||
|
alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'
|
||||||
|
# ~/.z -> $XDG_DATA_HOME/z
|
||||||
|
export _Z_DATA="$XDG_DATA_HOME/z"
|
||||||
|
# ~/.zcompdump* -> $XDG_CACHE_HOME/zsh/zcompdump*
|
||||||
|
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||||
|
# ~/.zsh_history -> $XDG_STATE_HOME/zsh/history
|
||||||
|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
Loading…
Add table
Add a link
Reference in a new issue