Add files via upload

This commit is contained in:
2025-11-24 19:46:30 +07:00
parent 90cc6d4253
commit a7ab7103a5
365 changed files with 17881 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Completion for doas https://github.com/multiplexd/doas
# based on the sudo completions
#
function __fish_doas_print_remaining_args
set -l tokens (commandline -opc) (commandline -ct)
set -e tokens[1]
# These are all the options mentioned in the man page for openbsd's "doas" (in that order).
set -l opts a= C= L n s u=
argparse -s $opts -- $tokens 2>/dev/null
# The remaining argv is the subcommand with all its options, which is what
# we want.
if test -n "$argv"
and not string match -qr '^-' $argv[1]
string join0 -- $argv
return 0
else
return 1
end
end
function __fish_complete_doas_subcommand
set -l args (__fish_doas_print_remaining_args | string split0)
set -lx -a PATH /usr/local/sbin /sbin /usr/sbin
__fish_complete_subcommand --commandline $args
end
complete -c doas -n "not __fish_doas_print_remaining_args" -s a -d "Choose auth method on systems using /etc/login.conf"
complete -c doas -n "not __fish_doas_print_remaining_args" -s C -r -d "validate given config file and test it against given command"
complete -c doas -n "not __fish_doas_print_remaining_args" -s L -d "Clear persisted authorizations, then exit"
complete -c doas -n "not __fish_doas_print_remaining_args" -s n -d "Fail if doas would prompt for password"
complete -c doas -n "not __fish_doas_print_remaining_args" -s s -d "Execute the shell from SHELL or /etc/passwd"
complete -c doas -n "not __fish_doas_print_remaining_args" -s u -a "(__fish_complete_users)" -x -d "Execute the command as user. The default is root."
# Complete the command we are executing under doas
complete -c doas -x -a "(__fish_complete_doas_subcommand)"

70
config/fish/config.fish Normal file
View File

@@ -0,0 +1,70 @@
# Приложения по умолчанию
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
export BROWSER=/usr/bin/vivaldi
export TERMINAL="kitty"
export PAGER=/usr/bin/bat
export GTK_THEME=Colloid-Green-Dark-Compact-Gruvbox
# Запуск буфера
##clipse -listen
#starship init fish | source
zoxide init fish | source
#set fish_greeting
#Алиасы
#alias ls="ls --color=yes --group-directories-first"
#alias ls="exa --long --all --group"
alias ls="exa --icons --group-directories-first"
alias pick_color="sxcs"
alias df="duf"
alias find="fd"
alias du="ncdu"
alias dv="yt-dlp"
#alias ping="gping"
alias updatepkg="yay -Syu --editmenu"
alias yy="yay --editmenu"
alias pkginfo="pacman -Qq | fzf --preview 'pacman -Qil {} | bat -fpl yml' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'"
#alias cat="bat -p --theme gruvbox-dark"
alias cat="bat"
alias rm="trash-put"
#alias rm="trashy put"
#alias rl="trashy list | fzf --multi | awk '{$1=$1;print}' | rev | cut -d ' ' -f1 | rev | xargs trashy restore --match=exact --force"
#alias re="trashy empty --all"
#alias cat="ccat"
alias kdiff="kitty +kitten diff"
alias icat="kitty +kitten icat"
alias music="ncmpcpp"
alias radio1="pyradio"
alias radio="goradion -s ~/.config/pyradio/stations.csv"
alias youtube="yt-dlp"
#alias url="yourls"
alias temp="watch sensors"
alias nv="nvim"
alias fm="yazi"
alias fz="fd . | fzf --preview 'bat --style=numbers --color=always {} 2>/dev/null' | xargs -r nvim"
alias micro="nvim"
alias sudo="doas"
alias locate="plocate -i"
#alias ssh="TERM=xterm ssh"
alias blc="bluetuith --connect-bdaddr F4:4E:FD:45:0C:39"
alias gpt="tgpt"
if test "$TERM" = xterm-kitty
alias ssh="kitty +kitten ssh"
end
if test -n "$XTERM_VERSION"
transset-df --id "$WINDOWID" >/dev/null
end
# CONFIGS
alias ebspwm="nvim ~/.config/bspwm/bspwmrc"
alias epolybar="nvim ~/.config/polybar/config.ini"
alias equtebrowser="nvim ~/.config/qutebrowser/config.py"
bind \es 'fish_commandline_prepend doas'
# Вывод текущей погоды при запуке терминала
#echo -e

View File

@@ -0,0 +1,34 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR EDITOR:nvim
SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:747369
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:99cc99
SETUVAR fish_color_comment:ffcc66
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:cc99cc
SETUVAR fish_color_error:f2777a
SETUVAR fish_color_escape:66cccc
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_match:6699cc
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:6699cc
SETUVAR fish_color_param:d3d0c8
SETUVAR fish_color_quote:ffcc66
SETUVAR fish_color_redirection:d3d0c8
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:\x2d\x2dunderline
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr

View File

@@ -0,0 +1,3 @@
function fish_prompt
eval /usr/bin/powerline-go -hostname-only-if-ssh -theme gruvbox -modules venv,ssh,cwd,git,load,hg,jobs,exit,root $status -jobs (count (jobs -p))
end

View File

@@ -0,0 +1,3 @@
function fish_user_key_bindings
fzf_key_bindings
end

View File

@@ -0,0 +1,8 @@
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end