mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-10-31
Update 2025-10-09 Update 2025-10-11 feat: add rose-pine gtk themes Update 2025-10-16 Update 2025-10-23 Fix desktop niri Update 2025-10-31
This commit is contained in:
@@ -18,7 +18,7 @@ alias keychain="keychain --dir $XDG_RUNTIME_DIR/keychain"
|
||||
alias diff="diff --color=auto"
|
||||
alias grep="rg --color=auto"
|
||||
alias ip="ip -color=auto"
|
||||
alias less="moar"
|
||||
alias less="moor"
|
||||
alias ls="eza -a --icons --group-directories-first"
|
||||
|
||||
# These common commands ate just too long! Abbreviate them
|
||||
|
||||
@@ -1,57 +1,35 @@
|
||||
# Source startup file
|
||||
# if test -f "$XDG_CONFIG_HOME/zsh/startup"
|
||||
# source "$XDG_CONFIG_HOME/zsh/startup"
|
||||
# end
|
||||
#!/usr/bin/env fish
|
||||
|
||||
|
||||
# Starship prompt
|
||||
starship init fish | source
|
||||
zoxide init fish | source
|
||||
|
||||
# Aliases
|
||||
if test -f "$XDG_CONFIG_HOME/fish/alias.fish"
|
||||
source "$XDG_CONFIG_HOME/fish/alias.fish"
|
||||
end
|
||||
set -g fish_history_size 1000000
|
||||
|
||||
# Environment variables
|
||||
set -x KEYTIMEOUT 1
|
||||
set -gx fish_complete_path "$XDG_CONFIG_HOME/fish/completions" $fish_complete_path
|
||||
|
||||
# Functions
|
||||
function cd
|
||||
if test (count $argv) -eq 0
|
||||
builtin cd ~
|
||||
else
|
||||
builtin cd $argv
|
||||
end
|
||||
eza -a --icons --group-directories-first
|
||||
end
|
||||
|
||||
function lfcd
|
||||
set tmp (mktemp -uq)
|
||||
lf -last-dir-path="$tmp" $argv
|
||||
if test -f "$tmp"
|
||||
set dir (cat "$tmp")
|
||||
if test -d "$dir" -a "$dir" != (pwd)
|
||||
cd "$dir"
|
||||
end
|
||||
end
|
||||
end
|
||||
# fzf configuration
|
||||
set -gx FZF_DEFAULT_OPTS "--height 40% --layout=reverse --border"
|
||||
set -gx FZF_DEFAULT_COMMAND "fd --type f"
|
||||
|
||||
function yazicd
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
set cwd (cat "$tmp")
|
||||
if test -n "$cwd" -a "$cwd" != "$PWD"
|
||||
cd "$cwd"
|
||||
eza -a --icons --group-directories-first
|
||||
end
|
||||
rm -f "$tmp"
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin z -- "$cwd" && eza -a --icons --group-directories-first
|
||||
end
|
||||
rm -f -- "$tmp" >/dev/null 2>&1
|
||||
end
|
||||
|
||||
# Keybindings
|
||||
fish_vi_key_bindings
|
||||
|
||||
|
||||
# Source other files
|
||||
# if test -f "$HOME/.local/share/../bin/env"
|
||||
# source "$HOME/.local/share/../bin/env"
|
||||
# # PATH configuration
|
||||
# fish_add_path $BUN_INSTALL/bin
|
||||
# fish_add_path $HOME/.local/bin
|
||||
#
|
||||
# # Environment setup
|
||||
# if test -f "$HOME/.local/share/bin/env"
|
||||
# source "$HOME/.local/share/bin/env"
|
||||
# end
|
||||
#
|
||||
# # Bun completions
|
||||
# if test -f "/home/kristofers/.bun/_bun"
|
||||
# source "/home/kristofers/.bun/_bun"
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user