minor fixes

This commit is contained in:
2026-07-09 17:49:47 +01:00
parent 80e245483a
commit 27759c824a
4 changed files with 10 additions and 3 deletions
+7
View File
@@ -26,6 +26,13 @@ function y
builtin cd -- "$cwd" builtin cd -- "$cwd"
end end
end end
function g
if git rev-parse --git-dir >/dev/null 2>&1
gitui
else
echo "Not inside a Git repository."
end
end
function editor function editor
set pos (cat ~/dotfiles/.pos) set pos (cat ~/dotfiles/.pos)
y $pos y $pos
-2
View File
@@ -14,8 +14,6 @@
vi = "${pkgs.neovim}/bin/nvim"; vi = "${pkgs.neovim}/bin/nvim";
vim = "${pkgs.neovim}/bin/nvim"; vim = "${pkgs.neovim}/bin/nvim";
g = "${pkgs.gitui}/bin/gitui";
}; };
shellInit = builtins.readFile ./config.fish; shellInit = builtins.readFile ./config.fish;
+2
View File
@@ -21,6 +21,8 @@ function fish_prompt
set -l user $USER set -l user $USER
set -l host (hostname) set -l host (hostname)
printf '\e[24m'
if test -n "$IN_NIX_SHELL" if test -n "$IN_NIX_SHELL"
if test "$IN_NIX_SHELL" = "shell" if test "$IN_NIX_SHELL" = "shell"
set -a markers "nix shell" set -a markers "nix shell"
+1 -1
View File
@@ -21,7 +21,7 @@ in
home.file.".xinitrc".text = '' home.file.".xinitrc".text = ''
if [ -f ~/.xsession ]; then if [ -f ~/.xsession ]; then
exec dbus-run-session ~/.xsession exec ~/.xsession
fi fi
''; '';