Initial commit
This commit is contained in:
+64
@@ -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
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR __fish_initialized:4300
|
||||||
Reference in New Issue
Block a user