aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-01-22 20:57:50 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-01-22 20:57:50 +0530
commitf33bdbbc18e031e5e9881d14fc306b709aef3572 (patch)
tree5718c8e6ca0ea0c731b44217a33ca8fa487f0710 /.config/fish
parente7e4d71e59973dba45bf63cd3db54d0bd6814572 (diff)
Pushing fish config
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish41
-rw-r--r--.config/fish/fish_variables42
-rw-r--r--.config/fish/functions/da.fish3
-rw-r--r--.config/fish/functions/dc.fish3
-rw-r--r--.config/fish/functions/dcm.fish3
-rw-r--r--.config/fish/functions/dots.fish3
-rw-r--r--.config/fish/functions/dp.fish3
-rw-r--r--.config/fish/functions/ds.fish3
-rw-r--r--.config/fish/functions/la.fish3
-rw-r--r--.config/fish/functions/ls.fish3
-rw-r--r--.config/fish/functions/lsa.fish3
11 files changed, 110 insertions, 0 deletions
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