Change layout to per-device top level
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user