zippy command and remove fish_variables

This commit is contained in:
Phantop 2022-01-21 13:30:10 -05:00
parent fb7657d22f
commit 1ca2bc22a3
4 changed files with 25 additions and 37 deletions

6
bin/zippy Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
data=$(curl -l "$1" | grep /d/)
base=$(echo "$1" | sed s/v/d/ | cut -d/ -f1-5)
num=$(echo "$data" | cut -d\( -f3 | cut -d\) -f1 | bc)
name=$(echo "$data" | cut -d/ -f5)
aria2c "$base/$num/$name"

View File

@ -6,6 +6,24 @@ if tty -s
set -x MANPAGER 'nvim +Man!'
set -x USE_CCACHE 1
set fish_greeting
set -U fish_features 3.0
set fish_color_command --bold
set fish_color_comment red
set fish_color_end brmagenta
set fish_color_error brred
set fish_color_escape 'bryellow' '--bold'
set fish_color_match --background=brblue
set fish_color_operator bryellow
set fish_color_param cyan
set fish_color_quote yellow
set fish_color_redirection brblue
set fish_color_status red
set fish_color_user brgreen
set fish_color_valid_path --underline
set fish_pager_color_prefix 'white' '--bold' '--underline'
bind \eo 'nnn'
bind \ed 'ncdu'
bind \et 'tmux'

View File

@ -1,36 +0,0 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR __fish_initialized:3100
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:\x2d\x2dbold
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:brmagenta
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:bryellow\x1e\x2d\x2dbold
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:bryellow
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:brblue
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_features:3\x2e0
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:\x1d
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

View File

@ -21,7 +21,7 @@ se cursorline
se expandtab
se formatoptions+=j
se ignorecase
se lbr
se linebreak
se mouse=a
se nowrap
se number