commit 28de4654b1446c97a26465e757f8e6e3c7840ef5 Author: Erick Ahmed Date: Wed Apr 1 13:48:39 2026 +0200 Initial commit diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..84162bb --- /dev/null +++ b/config.fish @@ -0,0 +1,64 @@ +set -g fish_greeting + +# Start X11 on login on TTY1 +if not set -q DISPLAY + if test (tty) = /dev/tty1 + exec startx + end +end + +#set -U fish-history (string trim (history | uniq)) + +set -x GIT_EDITOR vis + +fish_vi_key_bindings + +# Git +function git --wraps git + if contains -- "log" $argv + command tig + #else if contains -- "stats" $argv + # command gitstats + else + command git $argv + end +end + + +# LFCD +function lfcd --wraps="lf" --description="lf->cd on exit" + cd "$(command lf -print-last-dir $argv)" +end + +alias lf="lfcd" + +#BAT MAN +export MANPAGER="bat -plman" +#man 2 select + +#Zoxide +zoxide init fish | source + +alias cd="z" +alias cdi="zi" +alias ls="eza --icons=auto" +alias vim="vis" +alias cat="bat" +alias du="gdu" +alias top="gotop" +alias ps="procs" +alias fd="fd -H -d 9" +alias grep="rg" +alias history='history | fzf --tac --no-preview | read -l selected && commandline -- $selected' +alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"' +alias fd='fd | fzf' +alias mail="neomutt" +alias trip="trip -c ~/.config/trippy/trippy.toml" +alias markdown="glow" +alias ping="gping --clear" +alias logview="lnav" + +# Other interesting programs not aliased +# snitch - network listener +# pkgtop - top for xbps +# typioca - typing speed diff --git a/fish_variables b/fish_variables new file mode 100644 index 0000000..ad10b9b --- /dev/null +++ b/fish_variables @@ -0,0 +1,3 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:4300