mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
refractor
This commit is contained in:
parent
fbe299a28c
commit
4842ca3540
23 changed files with 92 additions and 70 deletions
4
home/.chezmoiscripts/todo/run_once_bash.sh
Normal file
4
home/.chezmoiscripts/todo/run_once_bash.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# shellcheck shell=sh
|
||||
|
||||
sudo cp $CHEZMOI_SOURCE_DIR/dot_config/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh
|
||||
11
home/.chezmoiscripts/todo/run_once_bat.sh
Normal file
11
home/.chezmoiscripts/todo/run_once_bat.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
if command -v bat > /dev/null 2>&1; then
|
||||
mkdir -p "$(bat --config-dir)/themes"
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
|
||||
fi
|
||||
|
||||
3
home/.chezmoiscripts/todo/run_once_fish.sh
Normal file
3
home/.chezmoiscripts/todo/run_once_fish.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl https://raw.githubusercontent.com/SpaceAceMonkey/dotenv-for-fish/refs/heads/main/dotenv.fish -o "$CHEZMOI_SOURCE_DIR/dot_config/fish/functions/dotenv.fish"
|
||||
12
home/.chezmoiscripts/todo/run_once_fonts.sh
Normal file
12
home/.chezmoiscripts/todo/run_once_fonts.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
curl -L https://github.com/lxgw/LxgwWenKai/releases/download/v1.520/lxgw-wenkai-v1.520.zip -o /tmp/lxgw-wenkai.zip
|
||||
unzip /tmp/lxgw-wenkai.zip -d ~/.local/share/fonts/
|
||||
|
||||
curl -L https://github.com/lxgw/LxgwNeoXiHei/releases/download/v1.223/LXGWNeoXiHeiPlus.ttf -o /tmp/lxgw-xihei.zip
|
||||
unzip /tmp/lxgw-xihei.zip -d ~/.local/share/fonts/
|
||||
|
||||
curl -L https://github.com/subframe7536/maple-font/releases/download/v7.7/MapleMono-NF-CN-unhinted.zip -o /tmp/maple-mono.zip
|
||||
unzip /tmp/maple-mono.zip -d ~/.local/share/fonts/
|
||||
|
||||
fc-cache -fv
|
||||
6
home/.chezmoiscripts/todo/run_once_nvim.sh
Normal file
6
home/.chezmoiscripts/todo/run_once_nvim.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# shellcheck shell=sh
|
||||
|
||||
if command -v nvim > /dev/null 2>&1; then
|
||||
nvim --headless +checkhealth +"w nvim-healthcheck.txt" +qall
|
||||
fi
|
||||
7
home/.chezmoiscripts/todo/run_once_rtorrent.sh
Normal file
7
home/.chezmoiscripts/todo/run_once_rtorrent.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/rtorrent/session
|
||||
mkdir -p $XDG_DATA_HOME/rtorrent/watch
|
||||
|
||||
9
home/.chezmoiscripts/todo/run_once_vim.sh
Normal file
9
home/.chezmoiscripts/todo/run_once_vim.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/vim/after
|
||||
mkdir -p $XDG_STATE_HOME/vim/{backup,swap,undo,view}
|
||||
|
||||
9
home/.chezmoiscripts/todo/run_once_yazi.sh
Normal file
9
home/.chezmoiscripts/todo/run_once_yazi.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if command -v yazi > /dev/null 2>&1; then
|
||||
ya pkg add llanosrocas/yaziline
|
||||
ya pkg add yazi-rs/plugins:git
|
||||
ya pkg add Rolv-Apneseth/starship
|
||||
fi
|
||||
exit 0
|
||||
|
||||
10
home/.chezmoiscripts/todo/run_once_zsh-install-plugins.sh
Normal file
10
home/.chezmoiscripts/todo/run_once_zsh-install-plugins.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
|
||||
test -d "$XDG_CONFIG_HOME/zsh/plugins/zsh-autosuggestions" || git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions.git "$XDG_CONFIG_HOME/zsh/plugins/zsh-autosuggestions"
|
||||
test -d "$XDG_CONFIG_HOME/zsh/plugins/zsh-syntax-highlighting" || git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git "$XDG_CONFIG_HOME/zsh/plugins/zsh-syntax-highlighting"
|
||||
test -d "$XDG_CONFIG_HOME/zsh/plugins/zsh-history-substring-search" || git clone --depth 1 https://github.com/zsh-users/zsh-history-substring-search.git "$XDG_CONFIG_HOME/zsh/plugins/zsh-history-substring-search"
|
||||
test -d "$XDG_CONFIG_HOME/zsh/plugins/zsh-completions" || git clone --depth 1 https://github.com/zsh-users/zsh-completions.git "$XDG_CONFIG_HOME/zsh/plugins/zsh-completions"
|
||||
|
||||
13
home/.chezmoiscripts/todo/run_once_zsh-set-env.sh
Normal file
13
home/.chezmoiscripts/todo/run_once_zsh-set-env.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
|
||||
if [ -f /etc/zshenv ]; then
|
||||
sudo cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" /etc/zshenv
|
||||
fi
|
||||
|
||||
if [ -f /etc/zsh/zshenv ]; then
|
||||
sudo cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" /etc/zsh/zshenv
|
||||
fi
|
||||
|
||||
mkdir -p $XDG_STATE_HOME/zsh
|
||||
Loading…
Add table
Add a link
Reference in a new issue