58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
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
|