summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRose Hellsing <rose@pinkro.se>2025-09-17 11:17:02 +0200
committerRose Hellsing <rose@pinkro.se>2025-09-17 11:17:02 +0200
commit35a6a2bb94a989bad896fe3b88aaf1eacad530fb (patch)
treef2dfa36401cd9a132ae4251456722634ab202cff
parent2ada569711691bd86c5b5a8992005620c7ece132 (diff)
downloaddotfiles-35a6a2bb94a989bad896fe3b88aaf1eacad530fb.tar.gz
dotfiles-35a6a2bb94a989bad896fe3b88aaf1eacad530fb.tar.bz2
fish: Add git meta command
-rw-r--r--.gitignore1
-rw-r--r--fish/.config/fish/config.fish1
-rw-r--r--fish/.config/fish/fish_variables32
-rwxr-xr-xfish/.local/bin/git.sh7
4 files changed, 41 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 21f3c66..2162caa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
+*~
.*~
desktop/.local/share/barmodules/enabled/ \ No newline at end of file
diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish
index 3f600cf..cfe8f5b 100644
--- a/fish/.config/fish/config.fish
+++ b/fish/.config/fish/config.fish
@@ -8,6 +8,7 @@ if status is-interactive
alias :music "launch.sh qmmp"
alias :edit "launch.sh foot emacs"
alias :files "launch.sh thunar"
+ alias :git git.sh
#alias w='dbus-run-session startplasma-wayland'
#alias w='dbus-run-session sway'
# Commands to run in interactive sessions can go here
diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables
new file mode 100644
index 0000000..72fe39c
--- /dev/null
+++ b/fish/.config/fish/fish_variables
@@ -0,0 +1,32 @@
+# This file contains fish universal variable definitions.
+# VERSION: 3.0
+SETUVAR __fish_initialized:3400
+SETUVAR fish_color_autosuggestion:brblack
+SETUVAR fish_color_cancel:\x2dr
+SETUVAR fish_color_command:blue
+SETUVAR fish_color_comment:red
+SETUVAR fish_color_cwd:green
+SETUVAR fish_color_cwd_root:red
+SETUVAR fish_color_end:green
+SETUVAR fish_color_error:brred
+SETUVAR fish_color_escape:brcyan
+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:brcyan
+SETUVAR fish_color_param:cyan
+SETUVAR fish_color_quote:yellow
+SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
+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_default_key_bindings
+SETUVAR fish_pager_color_completion:normal
+SETUVAR fish_pager_color_description:yellow\x1e\x2di
+SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
+SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
+SETUVAR fish_pager_color_selected_background:\x2dr
+SETUVAR fish_user_paths:/home/lain/\x2elocal/bin
diff --git a/fish/.local/bin/git.sh b/fish/.local/bin/git.sh
new file mode 100755
index 0000000..2d4eb43
--- /dev/null
+++ b/fish/.local/bin/git.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/bash
+
+if [[ "$1" == "clean" ]]; then
+ git clean -fdX
+else
+ git "$@"
+fi