aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2023-03-04 22:04:55 +0100
committerdelta <darkussdelta@gmail.com>2023-03-04 22:18:21 +0100
commitf0b32f45746c026d402651013b7e98315d6956a1 (patch)
treef42609e98522da081cebdd21a674a702d1054bbc /.config/fish/config.fish
parenta0f8b5fa6acdd1c2477fb1881dd9067956bf0ae6 (diff)
restructure awesome config, add fresnel
Diffstat (limited to '.config/fish/config.fish')
-rw-r--r--.config/fish/config.fish59
1 files changed, 59 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100644
index 0000000..2051e42
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,59 @@
+# fish
+set -gx FISH_CFG $XDG_CONFIG_HOME/fish
+set -g fish_greeting
+source $FISH_CFG/path.fish
+set -gx LANG "en_US.UTF-8"
+
+# xdg
+set -gx XDG_CONFIG_HOME "$HOME/.config"
+set -gx XDG_CACHE_HOME "$HOME/.cache"
+set -gx XDG_DATA_HOME "$HOME/.local/share"
+set -gx XDG_STATE_HOME "$HOME/.local/state"
+
+# program
+set -gx EDITOR "nvim"
+set -gx VISUAL "lite-xl"
+set -gx PF_INFO "ascii title os wm editor shell kernel palette"
+set -gx BAT_THEME "ansi"
+set -gx PNPM_HOME "$HOME/.local/share/pnpm"
+set -gx GTK_USE_PORTAL 1
+set -gx LITE_SCALE 1.3
+
+# $PATH
+source $FISH_CFG/path.fish
+
+# colors
+source $FISH_CFG/colors.fish
+
+# bindings
+source $FISH_CFG/bindings.fish
+
+# configs
+source $FISH_CFG/done_cfg.fish
+
+# abbreviations & aliases
+abbr -a paru paru --limit 10
+abbr -a projects cd ~/DesktopTemp/RealProjects
+abbr -a gc git commit -m
+abbr -a ga git add
+abbr -a gcl git clone
+alias dots="git --git-dir=$HOME/.dots --work-tree=$HOME"
+alias sudo="doas"
+alias ls="ls --color=auto"
+function ssh
+ export TERM=xterm-color
+ /usr/bin/ssh $argv
+ export TERM=xterm-kitty
+end
+function multicd
+ echo (string repeat -n (math (string length -- $argv[1]) - 1) ../)
+end
+abbr -a dotdot --regex '^\.\.+$' --position anywhere --function multicd
+function last_history_item
+ echo $history[1]
+end
+abbr -a !! --position anywhere --function last_history_item
+
+# shell init
+eval "$(ssh-agent -c)"
+starship init fish | source