From f33bdbbc18e031e5e9881d14fc306b709aef3572 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 22 Jan 2022 20:57:50 +0530 Subject: Pushing fish config --- .config/fish/config.fish | 41 +++++++++++++++++++++++++++++++++++++++ .config/fish/fish_variables | 42 ++++++++++++++++++++++++++++++++++++++++ .config/fish/functions/da.fish | 3 +++ .config/fish/functions/dc.fish | 3 +++ .config/fish/functions/dcm.fish | 3 +++ .config/fish/functions/dots.fish | 3 +++ .config/fish/functions/dp.fish | 3 +++ .config/fish/functions/ds.fish | 3 +++ .config/fish/functions/la.fish | 3 +++ .config/fish/functions/ls.fish | 3 +++ .config/fish/functions/lsa.fish | 3 +++ 11 files changed, 110 insertions(+) create mode 100644 .config/fish/config.fish create mode 100644 .config/fish/fish_variables create mode 100644 .config/fish/functions/da.fish create mode 100644 .config/fish/functions/dc.fish create mode 100644 .config/fish/functions/dcm.fish create mode 100644 .config/fish/functions/dots.fish create mode 100644 .config/fish/functions/dp.fish create mode 100644 .config/fish/functions/ds.fish create mode 100644 .config/fish/functions/la.fish create mode 100644 .config/fish/functions/ls.fish create mode 100644 .config/fish/functions/lsa.fish (limited to '.config') diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..09a2e1e --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,41 @@ +if status is-interactive + # Commands to run in interactive sessions can go here + starship init fish | source + neofetch + + # abbreviations + abbr --add --global gA 'git add -A' + abbr --add --global ga 'git add' + abbr --add --global gc 'git commit' + abbr --add --global gcl 'git clone' + abbr --add --global gcm 'git commit -m' + abbr --add --global gp 'git push' + abbr --add --global gs 'git status' + abbr --add --global rF 'rm -rf' + abbr --add --global rM 'rm -f' + abbr --add --global rf 'rm -r' + abbr --add --global x 'chmod +x' + + # general PATH + fish_add_path /home/zt/.scripts + fish_add_path /home/zt/.local/bin + fish_add_path /home/zt/.emacs.d/bin + fish_add_path /usr/local/bin + + # PATH for different languages + fish_add_path /home/zt/.gopath + fish_add_path /home/zt/.local/flutter/bin + + set -x RUST_SRC_PATH /home/zt/.cargo + set -x GOPATH /home/zt/.gopath + set -x QT_QPA_PLATFORMTHEME "gtk2" + + # default apps + set -x EDITOR "nvim" + set -x VISUAL "emacs" + set -x TERMINAL "alacritty" + set -x BROWSER "librewolf" + set -x READER "librewolf" + set -x COLORTERM "truecolor" + set -x PAGER "bat" +end diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..b9c7ac6 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,42 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3100 +SETUVAR _fish_abbr_gA:git\x20add\x20\x2dA +SETUVAR _fish_abbr_ga:git\x20add +SETUVAR _fish_abbr_gc:git\x20commit +SETUVAR _fish_abbr_gcl:git\x20clone +SETUVAR _fish_abbr_gcm:git\x20commit\x20\x2dm +SETUVAR _fish_abbr_gp:git\x20push +SETUVAR _fish_abbr_gs:git\x20status +SETUVAR _fish_abbr_rF:rm\x20\x2drf +SETUVAR _fish_abbr_rM:rm\x20\x2df +SETUVAR _fish_abbr_rf:rm\x20\x2dr +SETUVAR _fish_abbr_x:chmod\x20\x2bx +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:005fd7 +SETUVAR fish_color_comment:990000 +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:009900 +SETUVAR fish_color_error:ff0000 +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:00a6b2 +SETUVAR fish_color_param:00afff +SETUVAR fish_color_quote:999900 +SETUVAR fish_color_redirection:00afff +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_vi_key_bindings +SETUVAR fish_pager_color_completion:\x1d +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/zt/\x2egopath\x1e/usr/local/bin\x1e/home/zt/\x2eemacs\x2ed/bin\x1e/home/zt/\x2elocal/bin\x1e/home/zt/\x2escripts diff --git a/.config/fish/functions/da.fish b/.config/fish/functions/da.fish new file mode 100644 index 0000000..b44316d --- /dev/null +++ b/.config/fish/functions/da.fish @@ -0,0 +1,3 @@ +function da --wraps='dots add' --description 'alias da dots add' + dots add $argv; +end diff --git a/.config/fish/functions/dc.fish b/.config/fish/functions/dc.fish new file mode 100644 index 0000000..a5fefb9 --- /dev/null +++ b/.config/fish/functions/dc.fish @@ -0,0 +1,3 @@ +function dc --wraps='dots commit' --description 'alias dc dots commit' + dots commit $argv; +end diff --git a/.config/fish/functions/dcm.fish b/.config/fish/functions/dcm.fish new file mode 100644 index 0000000..5ba3d7e --- /dev/null +++ b/.config/fish/functions/dcm.fish @@ -0,0 +1,3 @@ +function dcm --wraps='dots commit -m' --description 'alias dcm dots commit -m' + dots commit -m $argv; +end diff --git a/.config/fish/functions/dots.fish b/.config/fish/functions/dots.fish new file mode 100644 index 0000000..29fd0e6 --- /dev/null +++ b/.config/fish/functions/dots.fish @@ -0,0 +1,3 @@ +function dots --wraps='git --git-dir=/home/zt/.dots/ --work-tree=/home/zt' --description 'alias dots git --git-dir=/home/zt/.dots/ --work-tree=/home/zt' + git --git-dir=/home/zt/.dots/ --work-tree=/home/zt $argv; +end diff --git a/.config/fish/functions/dp.fish b/.config/fish/functions/dp.fish new file mode 100644 index 0000000..82018ca --- /dev/null +++ b/.config/fish/functions/dp.fish @@ -0,0 +1,3 @@ +function dp --wraps='dots push' --description 'alias dp dots push' + dots push $argv; +end diff --git a/.config/fish/functions/ds.fish b/.config/fish/functions/ds.fish new file mode 100644 index 0000000..32b0d2a --- /dev/null +++ b/.config/fish/functions/ds.fish @@ -0,0 +1,3 @@ +function ds --wraps='dots status' --description 'alias ds dots status' + dots status $argv; +end diff --git a/.config/fish/functions/la.fish b/.config/fish/functions/la.fish new file mode 100644 index 0000000..97d65b6 --- /dev/null +++ b/.config/fish/functions/la.fish @@ -0,0 +1,3 @@ +function la --wraps='exa -a' --description 'alias la exa -a' + exa -a $argv; +end diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish new file mode 100644 index 0000000..ebc6d05 --- /dev/null +++ b/.config/fish/functions/ls.fish @@ -0,0 +1,3 @@ +function ls --wraps='exa -l' --description 'alias ls exa -l' + exa -l $argv; +end diff --git a/.config/fish/functions/lsa.fish b/.config/fish/functions/lsa.fish new file mode 100644 index 0000000..8ac8cb1 --- /dev/null +++ b/.config/fish/functions/lsa.fish @@ -0,0 +1,3 @@ +function lsa --wraps='exa -al' --description 'alias lsa exa -al' + exa -al $argv; +end -- cgit v1.2.3