Compare commits

...

7 Commits

Author SHA1 Message Date
inkch
365f01da54 tmux: add keybindings for new tmuxsh profiles 2025-01-14 15:28:10 +09:00
inkch
f0cedaa4a2 fish: add abbr for hledger 2025-01-14 15:27:56 +09:00
inkch
baa6a284b6 fish: add env for gpodder 2025-01-14 15:27:41 +09:00
inkch
f37136c653 fish: fix typo 2025-01-14 15:27:09 +09:00
inkch
319a2750b7 fish: add env for hledger 2025-01-14 15:26:56 +09:00
inkch
c5a650956b fish: fix typo 2025-01-14 15:26:46 +09:00
inkch
1e79cbba99 fish: use atuin 2025-01-14 15:26:13 +09:00
4 changed files with 24 additions and 2 deletions

View File

@ -411,3 +411,7 @@ end
if type -q chezmoi if type -q chezmoi
abbr cz chezmoi abbr cz chezmoi
end end
if type -q hledger
abbr hl hledger
end

View File

@ -13,6 +13,10 @@ if status --is-interactive
command -v zoxide > /dev/null && zoxide init fish | source command -v zoxide > /dev/null && zoxide init fish | source
command -v starship > /dev/null && starship init fish | source command -v starship > /dev/null && starship init fish | source
if not set -q FISH_IS_IN_PRIVATE
command -v atuin > /dev/null && atuin init fish | source
end
if type -q tmux; and test -z "$TMUX" if type -q tmux; and test -z "$TMUX"
tmux attach -t default || tmux new-session -s default tmux attach -t default || tmux new-session -s default
end end

View File

@ -151,10 +151,14 @@ if type -q vidir;
set -x VIDIR_EDITOR_ARGS '-c :set nolist | :set ft=vidir-ls' set -x VIDIR_EDITOR_ARGS '-c :set nolist | :set ft=vidir-ls'
end end
if type -q stack: # Haskell if type -q stack; # Haskell
set -x STACK_ROOT "$XDG_DATA_HOME"/stack set -x STACK_ROOT "$XDG_DATA_HOME"/stack
end end
if type -q hledger;
set -x LEDGER_FILE "$HOME/vc/accounting/hledger/main.journal"
end
{{- if (and (eq .chezmoi.os "linux") (eq .hosttype "desktop" "laptop")) }} {{- if (and (eq .chezmoi.os "linux") (eq .hosttype "desktop" "laptop")) }}
if test -d "$XDG_DATA_HOME/flatpak/exports/bin" if test -d "$XDG_DATA_HOME/flatpak/exports/bin"
set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin" set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin"
@ -170,14 +174,22 @@ if type -q calibre;
set -x CALIBRE_USE_DARK_PALETTE 1 set -x CALIBRE_USE_DARK_PALETTE 1
end end
if type -q ksshaskpass: if type -q ksshaskpass
set -x SSH_ASKPASS (which ksshaskpass) set -x SSH_ASKPASS (which ksshaskpass)
set -x SUDO_ASKPASS (which ksshaskpass) set -x SUDO_ASKPASS (which ksshaskpass)
end end
if type -q gpodder
set -x GPODDER_HOME "$XDG_CONFIG_HOME/gpodder"
end
{{- end }} {{- end }}
{{- if (eq .chezmoi.hostname "arch") }} {{- if (eq .chezmoi.hostname "arch") }}
if type -q ollama if type -q ollama
set -x OLLAMA_HOST "10.0.2.1:11434" set -x OLLAMA_HOST "10.0.2.1:11434"
end end
if type -q gpodder
set -x GPODDER_DOWNLOAD_DIR "/mnt/hdd/gpodder"
end
{{- end }} {{- end }}

View File

@ -38,6 +38,8 @@ bind C-j split-window -v -c '#{pane_current_path}'
bind C-c new-session bind C-c new-session
{{- if eq .chezmoi.hostname "arch" }} {{- if eq .chezmoi.hostname "arch" }}
bind C-t run "tmuxsh >/dev/null" bind C-t run "tmuxsh >/dev/null"
bind C-y run "tmuxsh remote >/dev/null"
bind C-u run "tmuxsh dev >/dev/null"
bind 0 run "tmuxsh wiki >/dev/null" bind 0 run "tmuxsh wiki >/dev/null"
bind 1 run "tmuxsh blog >/dev/null" bind 1 run "tmuxsh blog >/dev/null"
bind 3 run "tmuxsh tessoku >/dev/null" bind 3 run "tmuxsh tessoku >/dev/null"