From 1ca2bc22a3c5089a6e4230e86bf761a65644a947 Mon Sep 17 00:00:00 2001 From: Phantop Date: Fri, 21 Jan 2022 13:30:10 -0500 Subject: [PATCH] zippy command and remove fish_variables --- bin/zippy | 6 ++++++ fish/config.fish | 18 ++++++++++++++++++ fish/fish_variables | 36 ------------------------------------ nvim/init.vim | 2 +- 4 files changed, 25 insertions(+), 37 deletions(-) create mode 100755 bin/zippy delete mode 100644 fish/fish_variables diff --git a/bin/zippy b/bin/zippy new file mode 100755 index 0000000..3ed464a --- /dev/null +++ b/bin/zippy @@ -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" diff --git a/fish/config.fish b/fish/config.fish index 0d5b1d0..504173c 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -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' diff --git a/fish/fish_variables b/fish/fish_variables deleted file mode 100644 index 069742a..0000000 --- a/fish/fish_variables +++ /dev/null @@ -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 diff --git a/nvim/init.vim b/nvim/init.vim index b8fb54c..235926f 100755 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -21,7 +21,7 @@ se cursorline se expandtab se formatoptions+=j se ignorecase -se lbr +se linebreak se mouse=a se nowrap se number