diff options
| author | 2026-02-25 17:00:25 +0000 | |
|---|---|---|
| committer | 2026-02-25 17:50:51 +0000 | |
| commit | b8a05fa62a598f9d5b073b95dd0319c872fb6117 (patch) | |
| tree | 2f651429e3724a46165df3b47c6b4ac9c85e87e0 /fish | |
| parent | 518fd1b15173d224f20ac74ea2d0f139723ca1b2 (diff) | |
configurações do fish
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/config.fish | 105 | ||||
| -rw-r--r-- | fish/fish_variables | 81 | ||||
| -rw-r--r-- | fish/functions/bat.fish | 2 | ||||
| -rw-r--r-- | fish/functions/docker_aliases.fish | 23 | ||||
| -rw-r--r-- | fish/functions/git_aliases.fish | 193 | ||||
| -rw-r--r-- | fish/functions/luarocks_path.fish | 5 | ||||
| -rw-r--r-- | fish/functions/nvim.fish | 12 | ||||
| -rw-r--r-- | fish/functions/yda.fish | 7 |
8 files changed, 75 insertions, 353 deletions
diff --git a/fish/config.fish b/fish/config.fish index 9b293ca..c072cf0 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,79 +1,54 @@ -set -gx EDITOR /usr/bin/emacsclient -c -a '' -set -gx VISUAL /usr/bin/emacsclient -c -a '' -set -gx PAGER /usr/bin/bat --plain --terminal-width 72 -set -gx TERMINAL /usr/bin/foot -set -gx BROWSER /usr/bin/firefox -set -gx DMENU_CMD /usr/bin/fuzzel -d -set -gx XDG_DATA_HOME "$HOME/.local/share" -set -gx XDG_CACHE_HOME "$HOME/.cache" -set -gx XDG_CONFIG_HOME "$HOME/.config" -set -gx XDG_STATE_HOME "$HOME/.local/state" +# ~/.config/fish/config.fish: DO NOT EDIT -- this file has been generated +status is-login; and begin -set -gx PASSWORD_STORE_DIR "$XDG_DATA_HOME"/pass + # Login shell initialisation -set -gx CARGO_HOME "$XDG_DATA_HOME/cargo" -set -gx CARGO_BIN "$CARGO_HOME/bin" -set -gx RUSTUP_HOME "$XDG_DATA_HOME"/rustup - -set -gx GOPATH "$XDG_DATA_HOME/go" -set -gx GOBIN "$GOPATH/bin" - -set -gx FZF_DEFAULT_COMMAND 'fd --hidden' - -set -gx _JAVA_AWT_WM_NONREPARENTING 1 -set -gx _JAVA_OPTIONS -Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java - -set -gx ANDROID_HOME "$XDG_DATA_HOME"/android - -set -gx ASDF_DATA_DIR "$XDG_DATA_HOME"/asdf - -set -gx BASH_COMPLETION_USER_FILE "$XDG_CONFIG_HOME"/bash-completion/bash_completion - -set -gx CABAL_DIR "$XDG_DATA_HOME"/cabal -set -gx CABAL_CONFIG "$CABAL_DIR"/config - -set -gx CALCHISTFILE "$XDG_CACHE_HOME"/calc_history - -set -gx CUDA_CACHE_PATH "$XDG_CACHE_HOME"/nv - -set -gx GHCUP_USE_XDG_DIRS true - -set -gx JUPYTER_CONFIG_DIR "$XDG_CONFIG_HOME"/jupyter - -set -gx LEIN_HOME "$XDG_DATA_HOME"/lein - -set -gx LESSHISTFILE "$XDG_STATE_HOME"/less/history - -set -gx INPUTRC "$XDG_CONFIG_HOME"/readline/inputrc - -set -gx SQLITE_HISTORY "$XDG_CACHE_HOME"/sqlite_history - -set -gx WINEPREFIX "$XDG_DATA_HOME"/wine - -set -gx XINITRC "$XDG_CONFIG_HOME"/X11/xinitrc +end -set -gx GRIM_DEFAULT_DIR "(xdg-user-dir PICTURES)/screenshots" +status is-interactive; and begin -set -gx MOZ_ENABLE_WAYLAND 1 + # Abbreviations + abbr --add -- la 'eza -a' + abbr --add -- ll 'eza -l' + abbr --add -- lla 'eza -la' + abbr --add -- ls eza + abbr --add -- lt 'eza --tree' -set -gx XKB_DEFAULT_OPTIONS "compose:ralt" + # Aliases + alias eza 'eza --group-directories-first --header '\''--icons=always'\''' -zoxide init fish | source + # Interactive shell initialisation + fzf --fish | source -source /opt/asdf-vm/asdf.fish + set fish_greeting + set hydro_color_pwd yellow + set hydro_color_prompt green + set hydro_color_git red + set hydro_cmd_duration_threshold 30000 + any-nix-shell fish --info-right | source + fzf_configure_bindings --variables=\ev -abbr -a hx helix + zoxide init fish | source -abbr -a pare "paru -Rcs" -abbr -a man /usr/bin/batman + if set -q KITTY_INSTALLATION_DIR + set --global KITTY_SHELL_INTEGRATION no-rc + source "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish" + set --prepend fish_complete_path "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_completions.d" + end -git_aliases + # add completions generated by Home Manager to $fish_complete_path + begin + set -l joined (string join " " $fish_complete_path) + set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $joined) + set -l post_joined (string replace $prev_joined "" $joined) + set -l prev (string split " " (string trim $prev_joined)) + set -l post (string split " " (string trim $post_joined)) + set fish_complete_path $prev "/home/mino/.local/share/fish/home-manager/generated_completions" $post + end -fzf_configure_bindings --directory=\ct --variables= --git_log=\el --git_status=\e\cs --history=\cr --processes=\e\cp + set -gx GPG_TTY (tty) + gpg-connect-agent --quiet updatestartuptty /bye >/dev/null -set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME -fish_add_path $HOME/.cabal/bin $HOME/.ghcup/bin + direnv hook fish | source -if test (tty) = /dev/tty1 - dbus-run-session river end diff --git a/fish/fish_variables b/fish/fish_variables index 6013ecf..1bc5681 100644 --- a/fish/fish_variables +++ b/fish/fish_variables @@ -1,61 +1,24 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 -SETUVAR MOZ_ENABLE_WAYLAND:1 -SETUVAR XDG_CACHE_HOME:/home/bombom/\x2ecache -SETUVAR XDG_CONFIG_HOME:/home/bombom/\x2econfig -SETUVAR XDG_DATA_HOME:/home/bombom/\x2elocal/share -SETUVAR XDG_STATE_HOME:/home/bombom/\x2elocal/state -SETUVAR _JAVA_AWT_WM_NONREPARENTING:1 -SETUVAR __fish_initialized:3400 -SETUVAR _fish_abbr_ga:git\x20add -SETUVAR _fish_abbr_gc:git\x20commit -SETUVAR _fish_abbr_gl:git\x20log\x20\x2d\x2doneline -SETUVAR _fish_abbr_gs:git\x20status -SETUVAR _fish_abbr_hx:helix -SETUVAR _fish_abbr_pare:paru\x20\x2dRcs -SETUVAR _fisher_franciscolourenco_2F_done_files:\x7e/\x2econfig/fish/conf\x2ed/done\x2efish -SETUVAR _fisher_jorgebucaran_2F_autopair_2E_fish_files:\x7e/\x2econfig/fish/functions/_autopair_backspace\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_left\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_right\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_same\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_tab\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/autopair\x2efish -SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish -SETUVAR _fisher_patrickf1_2F_fzf_2E_fish_files:\x7e/\x2econfig/fish/functions/_fzf_configure_bindings_help\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_extract_var_info\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_changed_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_diff_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_file_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_directory\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_log\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_status\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_history\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_processes\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_variables\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_wrapper\x2efish\x1e\x7e/\x2econfig/fish/functions/fzf_configure_bindings\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fzf\x2efish\x1e\x7e/\x2econfig/fish/completions/fzf_configure_bindings\x2efish -SETUVAR _fisher_plugins:jorgebucaran/fisher\x1efranciscolourenco/done\x1ejorgebucaran/autopair\x2efish\x1epatrickf1/fzf\x2efish -SETUVAR _fisher_upgraded_to_4_4:\x1d -SETUVAR fish_color_autosuggestion:555 -SETUVAR fish_color_cancel:\x2d\x2dreverse -SETUVAR fish_color_command:blue -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:\x1d -SETUVAR fish_color_keyword:\x1d -SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:brcyan -SETUVAR fish_color_option:\x1d -SETUVAR fish_color_param:cyan -SETUVAR fish_color_quote:yellow -SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold -SETUVAR fish_color_search_match:bryellow\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_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_background:\x1d -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:B3A06D\x1e\x2d\x2ditalics -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_secondary_background:\x1d -SETUVAR fish_pager_color_secondary_completion:\x1d -SETUVAR fish_pager_color_secondary_description:\x1d -SETUVAR fish_pager_color_secondary_prefix:\x1d -SETUVAR fish_pager_color_selected_background:\x2d\x2dreverse -SETUVAR fish_pager_color_selected_completion:\x1d -SETUVAR fish_pager_color_selected_description:\x1d -SETUVAR fish_pager_color_selected_prefix:\x1d -SETUVAR fish_user_paths:/home/bombom\x1e/home/bombom/bin\x1e/home/bombom/\x2elocal/share/cargo/bin\x1e/home/bombom/\x2elocal/share/go/bin +SETUVAR --export LEDGER_FILE:/home/mino/finan\u00e7as/dindin\x2ejournal +SETUVAR __fish_initialized:4300 +SETUVAR _hydro_git_104309:\x40518fd1b\u2022\x20 +SETUVAR _hydro_git_116377:\x409be7829\u2022\x20 +SETUVAR _hydro_git_119901:\x409be7829\u2022\x20 +SETUVAR _hydro_git_132799:\x1d +SETUVAR _hydro_git_19470:main\u2022\x20 +SETUVAR _hydro_git_217832:main\u2022\x20 +SETUVAR _hydro_git_24498:main\u2022\x20 +SETUVAR _hydro_git_297387:main\u2022\x20 +SETUVAR _hydro_git_3520:\x1d +SETUVAR _hydro_git_3798:main\u2022\x20 +SETUVAR _hydro_git_4078:main\x20 +SETUVAR _hydro_git_4595:main\u2022\x20 +SETUVAR _hydro_git_49579:\x409be7829\u2022\x20 +SETUVAR _hydro_git_6320:main\u2022\x20 +SETUVAR _hydro_git_67718:main\u2022\x20 +SETUVAR _hydro_git_79822:main\u2022\x20 +SETUVAR _hydro_git_97107:main\x20 +SETUVAR _hydro_git_97419:main\x20 +SETUVAR _hydro_git_98131:main\u2022\x20 +SETUVAR _hydro_git_98998:main\u2022\x20 diff --git a/fish/functions/bat.fish b/fish/functions/bat.fish index b3d0c20..545919c 100644 --- a/fish/functions/bat.fish +++ b/fish/functions/bat.fish @@ -1,3 +1,3 @@ function bat - /usr/bin/bat --style header,rule,numbers $argv + command bat --style header,rule,numbers $argv end diff --git a/fish/functions/docker_aliases.fish b/fish/functions/docker_aliases.fish deleted file mode 100644 index 14be473..0000000 --- a/fish/functions/docker_aliases.fish +++ /dev/null @@ -1,23 +0,0 @@ -# Defined in /tmp/fish.fHKs5I/docker_aliases.fish @ line 1 -function docker_aliases - set -l dccmd "docker compose" - - abbr -a dco "$dccmd" - abbr -a dcb "$dccmd build" - abbr -a dce "$dccmd exec" - abbr -a dcps "$dccmd ps" - abbr -a dcrestart "$dccmd restart" - abbr -a dcrm "$dccmd rm" - abbr -a dcr "$dccmd run" - abbr -a dcstop "$dccmd stop" - abbr -a dcup "$dccmd up" - abbr -a dcupb "$dccmd up --build" - abbr -a dcupd "$dccmd up -d" - abbr -a dcupdb "$dccmd up -d --build" - abbr -a dcdn "$dccmd down" - abbr -a dcl "$dccmd logs" - abbr -a dclf "$dccmd logs -f" - abbr -a dcpull "$dccmd pull" - abbr -a dcstart "$dccmd start" - abbr -a dck "$dccmd kill" -end diff --git a/fish/functions/git_aliases.fish b/fish/functions/git_aliases.fish deleted file mode 100644 index c3b6f79..0000000 --- a/fish/functions/git_aliases.fish +++ /dev/null @@ -1,193 +0,0 @@ -# Defined in /tmp/fish.2N4eH3/git_aliases.fish @ line 2 -function git_aliases - abbr -a g git - - abbr -a ga 'git add' - abbr -a gaa 'git add --all' - abbr -a gapa 'git add --patch' - abbr -a gau 'git add --update' - abbr -a gav 'git add --verbose' - abbr -a gap 'git apply' - abbr -a gapt 'git apply --3way' - - abbr -a gb 'git branch' - abbr -a gba 'git branch --all' - abbr -a gbd 'git branch --delete' - abbr -a gbda 'git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch --delete 2>/dev/null' - abbr -a gbD 'git branch --delete --force' - abbr -a gbg 'git branch -vv | grep ": gone\]"' - abbr -a gbgd 'local res $(gbg | awk '"'"'{print $1}'"'"') && [[ $res ]] && echo $res | xargs git branch -d' - abbr -a gbgD 'local res $(gbg | awk '"'"'{print $1}'"'"') && [[ $res ]] && echo $res | xargs git branch -D' - abbr -a gbl 'git blame -b -w' - abbr -a gbnm 'git branch --no-merged' - abbr -a gbr 'git branch --remote' - abbr -a gbs 'git bisect' - abbr -a gbsb 'git bisect bad' - abbr -a gbsg 'git bisect good' - abbr -a gbsr 'git bisect reset' - abbr -a gbss 'git bisect start' - - abbr -a gc 'git commit --verbose' - abbr -a gc! 'git commit --verbose --amend' - abbr -a gcn! 'git commit --verbose --no-edit --amend' - abbr -a gca 'git commit --verbose --all' - abbr -a gca! 'git commit --verbose --all --amend' - abbr -a gcan! 'git commit --verbose --all --no-edit --amend' - abbr -a gcans! 'git commit --verbose --all --signoff --no-edit --amend' - abbr -a gcam 'git commit --all --message' - abbr -a gcsm 'git commit --signoff --message' - abbr -a gcas 'git commit --all --signoff' - abbr -a gcasm 'git commit --all --signoff --message' - abbr -a gcb 'git checkout -b' - abbr -a gcf 'git config --list' - - abbr -a gcl 'git clone --recurse-submodules' - abbr -a gclean 'git clean --interactive -d' - abbr -a gpristine 'git reset --hard && git clean --force -dfx' - abbr -a gcm 'git checkout $git_main_branch' - abbr -a gcd 'git checkout $(git_develop_branch)' - abbr -a gcmsg 'git commit --message' - abbr -a gco 'git checkout' - abbr -a gcor 'git checkout --recurse-submodules' - abbr -a gcount 'git shortlog --summary --numbered' - abbr -a gcp 'git cherry-pick' - abbr -a gcpa 'git cherry-pick --abort' - abbr -a gcpc 'git cherry-pick --continue' - abbr -a gcs 'git commit --gpg-sign' - abbr -a gcss 'git commit --gpg-sign --signoff' - abbr -a gcssm 'git commit --gpg-sign --signoff --message' - - abbr -a gd 'git diff' - abbr -a gdca 'git diff --cached' - abbr -a gdcw 'git diff --cached --word-diff' - abbr -a gdct 'git describe --tags $(git rev-list --tags --max-count 1)' - abbr -a gds 'git diff --staged' - abbr -a gdt 'git diff-tree --no-commit-id --name-only -r' - abbr -a gdup 'git diff @{upstream}' - abbr -a gdw 'git diff --word-diff' - - abbr -a gf 'git fetch' - abbr -a gfa 'git fetch --all' - abbr -a gfo 'git fetch origin' - - abbr -a gfg 'git ls-files | grep' - - abbr -a gg 'git gui citool' - abbr -a gga 'git gui citool --amend' - - abbr -a gl 'git pull' - abbr -a glg 'git log --stat' - abbr -a glgp 'git log --stat --patch' - abbr -a glgg 'git log --graph' - abbr -a glgga 'git log --graph --decorate --all' - abbr -a glgm 'git log --graph --max-count 10' - abbr -a glo 'git log --oneline --decorate' - abbr -a glol "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'" - abbr -a glols "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat" - abbr -a glod "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'" - abbr -a glods "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short" - abbr -a glola "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all" - abbr -a glog 'git log --oneline --decorate --graph' - abbr -a gloga 'git log --oneline --decorate --graph --all' - abbr -a glp _git_log_prettily - - abbr -a gm 'git merge' - abbr -a gmom 'git merge origin/$(git_main_branch)' - abbr -a gmtl 'git mergetool --no-prompt' - abbr -a gmtlvim 'git mergetool --no-prompt --tool vimdiff' - abbr -a gmum 'git merge upstream/$(git_main_branch)' - abbr -a gma 'git merge --abort' - - abbr -a gp 'git push' - abbr -a gpd 'git push --dry-run' - abbr -a gpf 'git push --force-with-lease' - abbr -a gpf! 'git push --force' - abbr -a gpoat 'git push origin --all && git push origin --tags' - abbr -a gpod 'git push origin --delete' - abbr -a gpr 'git pull --rebase' - abbr -a gpu 'git push upstream' - abbr -a gpv 'git push --verbose' - - abbr -a gr 'git remote' - abbr -a gra 'git remote add' - abbr -a grb 'git rebase' - abbr -a grba 'git rebase --abort' - abbr -a grbc 'git rebase --continue' - abbr -a grbd 'git rebase $(git_develop_branch)' - abbr -a grbi 'git rebase --interactive' - abbr -a grbm 'git rebase $(git_main_branch)' - abbr -a grbom 'git rebase origin/$(git_main_branch)' - abbr -a grbo 'git rebase --onto' - abbr -a grbs 'git rebase --skip' - abbr -a grev 'git revert' - abbr -a grh 'git reset' - abbr -a grhh 'git reset --hard' - abbr -a groh 'git reset origin/$(git_current_branch) --hard' - abbr -a grm 'git rm' - abbr -a grmc 'git rm --cached' - abbr -a grmv 'git remote rename' - abbr -a grrm 'git remote remove' - abbr -a grs 'git restore' - abbr -a grset 'git remote set-url' - abbr -a grss 'git restore --source' - abbr -a grst 'git restore --staged' - abbr -a grt 'cd "$(git rev-parse --show-toplevel || echo .)"' - abbr -a gru 'git reset --' - abbr -a grup 'git remote update' - abbr -a grv 'git remote --verbose' - - abbr -a gsb 'git status --short --branch' - abbr -a gsd 'git svn dcommit' - abbr -a gsh 'git show' - abbr -a gsi 'git submodule init' - abbr -a gsps 'git show --pretty short --show-signature' - abbr -a gsr 'git svn rebase' - abbr -a gss 'git status --short' - abbr -a gst 'git status' - - # use the default stash push on git 2.13 and newer - abbr -a gsta 'git stash push' - abbr -a gstaa 'git stash apply' - abbr -a gstc 'git stash clear' - abbr -a gstd 'git stash drop' - abbr -a gstl 'git stash list' - abbr -a gstp 'git stash pop' - abbr -a gsts 'git stash show --text' - abbr -a gstu 'gsta --include-untracked' - abbr -a gstall 'git stash --all' - abbr -a gsu 'git submodule update' - abbr -a gsw 'git switch' - abbr -a gswc 'git switch --create' - abbr -a gswm 'git switch $(git_main_branch)' - abbr -a gswd 'git switch $(git_develop_branch)' - - abbr -a gts 'git tag --sign' - abbr -a gtv 'git tag | sort -V' - abbr -a gtl 'gtl(){ git tag --sort -v:refname -n --list "${1}*" }; noglob gtl' - - abbr -a gunignore 'git update-index --no-assume-unchanged' - abbr -a gunwip 'git log --max-count 1 | grep -q -c "\--wip--" && git reset HEAD~1' - abbr -a gup 'git pull --rebase' - abbr -a gupv 'git pull --rebase --verbose' - abbr -a gupa 'git pull --rebase --autostash' - abbr -a gupav 'git pull --rebase --autostash --verbose' - abbr -a gupom 'git pull --rebase origin $(git_main_branch)' - abbr -a gupomi 'git pull --rebase interactive origin $(git_main_branch)' - abbr -a glum 'git pull upstream $(git_main_branch)' - abbr -a gluc 'git pull upstream $(git_current_branch)' - - abbr -a gwch 'git whatchanged -p --abbrev-commit --pretty medium' - abbr -a gwip 'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign --message "--wip-- [skip ci]"' - - abbr -a gwt 'git worktree' - abbr -a gwta 'git worktree add' - abbr -a gwtls 'git worktree list' - abbr -a gwtmv 'git worktree move' - abbr -a gwtrm 'git worktree remove' - - abbr -a gam 'git am' - abbr -a gamc 'git am --continue' - abbr -a gams 'git am --skip' - abbr -a gama 'git am --abort' - abbr -a gamscp 'git am --show-current-patch' -end diff --git a/fish/functions/luarocks_path.fish b/fish/functions/luarocks_path.fish deleted file mode 100644 index 932a3f0..0000000 --- a/fish/functions/luarocks_path.fish +++ /dev/null @@ -1,5 +0,0 @@ -function luarocks_path - for i in (luarocks path | awk '{sub(/PATH=/, "PATH ", $2); print "set -gx "$2}') - eval $i - end -end diff --git a/fish/functions/nvim.fish b/fish/functions/nvim.fish new file mode 100644 index 0000000..6fb1cb8 --- /dev/null +++ b/fish/functions/nvim.fish @@ -0,0 +1,12 @@ +function nvim --description 'open a new nvim instance or connect to an existing one using nvr(1)' + # if `nvr` is not installed, nevermind. just run `nvim` + if ! command -v nvr + command nvim $argv + end + + if test ! -S /tmp/nvimsocket + command nvim --listen /tmp/nvimsocket $argv + else + command nvr $argv + end +end diff --git a/fish/functions/yda.fish b/fish/functions/yda.fish deleted file mode 100644 index 1d9881a..0000000 --- a/fish/functions/yda.fish +++ /dev/null @@ -1,7 +0,0 @@ -function yda - yt-dlp -4 -x --audio-format flac \ - -o '~/musica/%(title)s.%(ext)s' \ - --external-downloader aria2c \ - --external-downloader-args '-c -j 3 -x 3 -s 3 -k 1M' \ - $argv -end |
