Change layout to per-device top level

This commit is contained in:
2026-06-07 01:08:50 +08:00
parent 072e6ae564
commit 42f2931bac
21 changed files with 262 additions and 4038 deletions
+77
View File
@@ -0,0 +1,77 @@
# Editor
set -gx EDITOR nvim
set -gx VISUAL nvim
# Better defaults
set -gx PAGER less
set -gx LESS "-R --use-color -Dd+r -Du+b"
# XDG paths
set -gx XDG_CONFIG_HOME "$HOME/.config"
set -gx XDG_DATA_HOME "$HOME/.local/share"
set -gx XDG_CACHE_HOME "$HOME/.cache"
# Local binaries
fish_add_path "$HOME/.local/bin"
fish_add_path "$HOME/.cargo/bin"
# Wayland-friendly defaults
set -gx MOZ_ENABLE_WAYLAND 1
set -gx QT_QPA_PLATFORM wayland
set -gx SDL_VIDEODRIVER wayland
set -gx CLUTTER_BACKEND wayland
# Fish behavior
set fish_greeting
# Vi-style bindings
fish_vi_key_bindings
# Useful aliases
alias ls="ls --color=auto"
alias ll="ls -lah"
alias la="ls -A"
alias grep="grep --color=auto"
alias c="clear"
alias v="nvim"
alias svim="sudoedit"
alias gs="git status"
alias ga="git add"
alias gc="git commit"
alias gp="git push"
alias gl="git log --oneline --graph --decorate"
alias pacup="sudo pacman -Syu"
alias pacin="sudo pacman -S"
alias pacrm="sudo pacman -Rns"
alias pacq="pacman -Qs"
alias ls="eza --icons"
alias ll="eza -lah --icons --git"
alias cat="bat"
if type -q zoxide
zoxide init fish | source
end
if type -q fzf
fzf --fish | source
end
# Safer defaults
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
# Starship prompt
if type -q starship
starship init fish | source
end
if status is-login
and test -z "$WAYLAND_DISPLAY"
and test "$XDG_VTNR" = "1"
exec sway
end
+3
View File
@@ -0,0 +1,3 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:4300