Change some fish stuff

This commit is contained in:
Uttarayan Mondal
2021-06-01 15:10:11 +05:30
parent 76f211a525
commit e8932b1790
3 changed files with 14 additions and 1 deletions

View File

@@ -66,5 +66,7 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export EDITOR=nvim
export VISUAL=nvim
# Browser
export BROWSER=xdg-open # so that the default browser at any time can open
# GPG
export GPG_TTY=(tty)

View File

@@ -1,10 +1,17 @@
function man
set oldIFS "$IFS"
set IFS ""
set page (/usr/bin/man "$argv" | col -b)
set page (/usr/bin/man $argv | col -b)
if ! [ -z "$page" ]
echo "$page" | nvim -R -c 'set ft=man nomod nolist' -
end
set IFS "$oldIFS"
end
function __fish_command_not_found_handler --on-event fish_command_not_found
echo "fish: Unknown command '$argv'"
end
thefuck --alias | source

View File

@@ -4,16 +4,20 @@ SETUVAR __fish_initialized:3100
SETUVAR _fish_abbr_c:checkmail
SETUVAR _fish_abbr_cat:bat
SETUVAR _fish_abbr_cd:z
SETUVAR _fish_abbr_g:git
SETUVAR _fish_abbr_ll:exa\x20\x2dal
SETUVAR _fish_abbr_ls:exa
SETUVAR _fish_abbr_m:neomutt
SETUVAR _fish_abbr_n:notmuch
SETUVAR _fish_abbr_nb:newsboat
SETUVAR _fish_abbr_o:xdg\x2dopen
SETUVAR _fish_abbr_p:pacman
SETUVAR _fish_abbr_rpc:patch\x20\x2dp0\x20\x3c\x20\x7e/\x2elocal/share/console\x2ediff
SETUVAR _fish_abbr_s:source\x20venv/bin/activate\x2efish
SETUVAR _fish_abbr_sl:exa
SETUVAR _fish_abbr_t:/home/fs0c131y/\x2econfig/tmux/start\x2dtmux
SETUVAR _fish_abbr_v:nvim
SETUVAR _fish_abbr_yay:paru
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:005fd7