Initial commit

This commit is contained in:
duck
2025-12-17 21:43:32 +05:00
commit 591831666f
38 changed files with 2382 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# General
abbr -a nv nvim
abbr -a lg lazygit
abbr -a tx tmux
abbr -a pc pacman
abbr -a cl clear
function fastparentcd
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
end
abbr -a dotdot -r "^\.\.+\$" -f fastparentcd
# Git
abbr -a g git
abbr -a ga git add
abbr -a gs git status
abbr -a gss git status -s
abbr -a gc git commit
abbr -a gca git commit --amend
abbr -a gb git rebase
abbr -a gbc git rebase --continue
abbr -a gg git push
abbr -a gp git pull
abbr -a gw git switch
abbr -a go git restore
abbr -a gr git reset
abbr -a goo git restore -S
abbr -a gri git rebase -i
abbr -a ge git remote
abbr -a ger git remote remove
abbr -a gea git remote add
abbr -a ges git remote show -n
abbr -a gf git fetch
abbr -a gd git diff
abbr -a gds git diff --staged
# Zig
abbr -a zb zig build
abbr -a zbr zig build run
abbr -a zbe zig build-exe
abbr -a zbt zig build test

View File

@@ -0,0 +1,30 @@
set -gx EDITOR nvim
set -gx MANPAGER nvim +Man!
set -U fish_greeting
set history_ignore rm
if test -n "$fish_private_mode"
function fish_title
echo "Private Shell"
end
end
function ll
command exa -l $argv
end
function cat
command bat $argv
end
function fish_should_add_to_history
for cmd in $history_ignore
string match -qr "^$cmd" -- $argv; and return 1
end
return 0
end
if status is-interactive
starship init fish | source
zoxide init fish | source
end

View File

@@ -0,0 +1,32 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:brblue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:normal
SETUVAR fish_color_quote:brgreen
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:brgreen
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:brgreen
SETUVAR fish_pager_color_description:yellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr