]> Freerunner's - dotfiles.git/commitdiff
bash/fish/kak: make config more robust
authorAndre Ramnitz <tux.rising@gmail.com>
Fri, 29 Dec 2023 02:34:29 +0000 (03:34 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:52 +0000 (18:18 +0200)
config/fish/fish_variables
config/fish/functions/gs.fish [deleted file]
config/fish/functions/gst.fish [new file with mode: 0644]
config/kak/kakrc
home/.bashrc

index 10efd7b39038dc6db3795ebe31aee6a9a193fbf9..509f25c7448184f7754948cdbb399beba8d9107a 100644 (file)
@@ -1,6 +1,8 @@
 # This file contains fish universal variable definitions.
 # VERSION: 3.0
 SETUVAR --export EDITOR:kks\x20edit
+SETUVAR --export VISUAL:kks\x20edit
+SETUVAR --export PAGER:bat\x20--style\x20auto
 SETUVAR --export FZF_DEFAULT_OPTS:--multi\x20--layout=reverse\x20--preview-window=down:60%
 SETUVAR --export KCR_DEFAULT_SESSION:default
 SETUVAR --export VDPAU_DRIVER:radeonsi
diff --git a/config/fish/functions/gs.fish b/config/fish/functions/gs.fish
deleted file mode 100644 (file)
index 0755f7c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-function gs --wraps='git status' --description 'alias gs=git status'
-  git status $argv; 
-end
diff --git a/config/fish/functions/gst.fish b/config/fish/functions/gst.fish
new file mode 100644 (file)
index 0000000..0555d05
--- /dev/null
@@ -0,0 +1,3 @@
+function gst --wraps='git status' --description 'alias gst=git status'
+  git status $argv; 
+end
index 33fc27a340d94060e735d340008194dc19281387..715f9e4c9e56c0a35a95e61ae6e6a4c310224dd6 100644 (file)
@@ -9,6 +9,7 @@ hook global NormalKey y %{ nop %sh{
 # ──────────────────────────────────────────────────────────────────────────────
 hook global BufOpenFile .* %{
     modeline-parse
+    editorconfig-load
 }
 
 hook global BufCreate [^*].* %{
@@ -22,7 +23,6 @@ hook global BufCreate [^*].* %{
 # dynamic scrolloff
 # ──────────────────────────────────────────────────────────────────────────────
 hook global WinCreate [^*].* %{
-    editorconfig-load
     hook -once window WinDisplay .* %{
         hook window WinResize [0-9]*\.[0-9]* %{
             set-option window scrolloff %sh{
index eda3817e150504ab73848f0a93f5835f048929ae..682fc798553d61475c2005379f2edce652213d01 100644 (file)
@@ -11,15 +11,17 @@ export PATH="$PATH:~/go/bin:~/.cargo/bin:~/.local/bin:~/Applications/"
 
 export BROWSER='qutebrowser "--untrusted-args %u"'
 export EDITOR="kks edit"
+export VISUAL="kks edit"
 export KKS_DEFAULT_SESSION='default'
 export KKS_USE_GITDIR_SESSIONS=1
-export PAGER="bat"
+export PAGER="bat --style auto"
 export VDPAU_DRIVER="radeonsi"
 export XZ_OPT="--threads=16"
 
 alias grep='grep -i'
 alias gcp="git cherry-pick"
 alias glo="git log --oneline"
+alias gst="git status"
 alias nano='nano -_qpT4 '
 alias free='free -h --si'