1
0
This commit is contained in:
2026-01-18 00:11:46 +01:00
parent f68859d355
commit 4eb8fbdc56
5 changed files with 123 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# ~/.config/fish/completions/z.fish
function __zoxide_completions
zoxide query -ls | string match -r "$argv"
end
complete -c z -f -a "(__zoxide_completions)"
complete -c j -f -a "(__zoxide_completions)"
complete -c zi -f -a "(__zoxide_completions)"
@@ -0,0 +1,14 @@
# This file was created by fish when upgrading to version 4.3, to migrate
# the 'fish_key_bindings' variable from its old default scope (universal)
# to its new default scope (global). We recommend you delete this file
# and configure key bindings in ~/.config/fish/config.fish if needed.
# set --global fish_key_bindings fish_default_key_bindings
# Prior to version 4.3, fish shipped an event handler that runs
# `set --universal fish_key_bindings fish_default_key_bindings`
# whenever the fish_key_bindings variable is erased.
# This means that as long as any fish < 4.3 is still running on this system,
# we cannot complete the migration.
# As a workaround, erase the universal variable at every shell startup.
set --erase --universal fish_key_bindings
@@ -0,0 +1,36 @@
# This file was created by fish when upgrading to version 4.3, to migrate
# theme variables from universal to global scope.
# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
# To customize your theme, delete this file and see
# help interactive#syntax-highlighting
# or
# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
# for appropriate commands to add to ~/.config/fish/config.fish instead.
# See also the release notes for fish 4.3.0 (run `help relnotes`).
set --global fish_color_autosuggestion brblack
set --global fish_color_cancel -r
set --global fish_color_comment red
set --global fish_color_cwd green
set --global fish_color_cwd_root red
set --global fish_color_end green
set --global fish_color_error brred
set --global fish_color_escape brcyan
set --global fish_color_history_current --bold
set --global fish_color_host normal
set --global fish_color_host_remote yellow
set --global fish_color_normal normal
set --global fish_color_operator brcyan
set --global fish_color_param cyan
set --global fish_color_quote yellow
set --global fish_color_redirection cyan --bold
set --global fish_color_search_match white --background=brblack
set --global fish_color_selection white --bold --background=brblack
set --global fish_color_status red
set --global fish_color_user brgreen
set --global fish_color_valid_path --underline
set --global fish_pager_color_completion normal
set --global fish_pager_color_description yellow -i
set --global fish_pager_color_prefix normal --bold --underline
set --global fish_pager_color_progress brwhite --background=cyan
set --global fish_pager_color_selected_background -r
+7
View File
@@ -0,0 +1,7 @@
# Path to Oh My Fish install.
set -q XDG_DATA_HOME
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
or set -gx OMF_PATH "$HOME/.local/share/omf"
# Load Oh My Fish configuration.
source $OMF_PATH/init.fish
+57
View File
@@ -0,0 +1,57 @@
set -x TERMINAL kitty
set -g fish_greeting
set --global fish_color_command blue
set -gx FZF_DEFAULT_OPTS "--color=bg+:#1d2021,gutter:-1 --reverse --border --height=40%"
# Interactive output
if status is-interactive
fastfetch
end
# Alias
alias nmtui='sudo nmtui'
alias tyt-dlp='yt-dlp --config-locations ~/.config/yt-dlp/temp.txt'
alias fyt-dlp='yt-dlp --config-locations ~/.config/yt-dlp/fix.txt'
alias myt-dlp='yt-dlp --config-locations ~/.config/yt-dlp/music.txt'
alias pyt-dlp='yt-dlp --config-locations ~/.config/yt-dlp/prt.txt'
alias py='python3'
alias ip='ip --color'
alias mktmp='cd "$(mktemp -d)" && chown forust:forust .'
alias tmpcode='cd "$(mktemp -d)" && chown forust:forust . && $VISUAL . && exit'
alias utctime='date +"%Y-%m-%dT%H:%M:%S%z"'
# Zoxide init
zoxide init fish | source
# Zoxide add
function cd
builtin cd $argv
and zoxide add (pwd)
end
# Zoxide+fzf
function zi --description 'zoxide + fzfq'
set selected (zoxide query -l | fzf --height=40% --layout=reverse --border)
if test -n "$selected"
cd $selected
end
end
# zoxide алиасы
alias jj='zi'
alias zb='z -'
alias zh='zoxide query -l | head -n 20'
# thefuck алиас
function fuck -d "Correct your previous console command"
set -l fucked_up_command $history[1]
env TF_SHELL=fish TF_ALIAS=fuck PYTHONIOENCODING=utf-8 thefuck $fucked_up_command THEFUCK_ARGUMENT_PLACEHOLDER $argv | read -l unfucked_command
if [ "$unfucked_command" != "" ]
eval $unfucked_command
builtin history delete --exact --case-sensitive -- $fucked_up_command
builtin history merge
end
end
fish_add_path /home/forust/.spicetify