minor fixes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user