pkgs: Starship
This commit is contained in:
parent
6049fec394
commit
944f5b1159
@ -1,48 +1,86 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
home.packages = [ pkgs.nh ];
|
home.packages = [ pkgs.nh ];
|
||||||
programs.zoxide.enable = true;
|
programs = {
|
||||||
programs.zsh = {
|
zoxide.enable = true;
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
# enableAutosuggestions = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
shellAliases =
|
starship = {
|
||||||
let
|
enable = true;
|
||||||
flakeDir = "~/nix";
|
enableZshIntegration = true;
|
||||||
in {
|
|
||||||
rb = "nh os switch ${flakeDir}";
|
|
||||||
upd = "nix flake update ${flakeDir}";
|
|
||||||
upg = "sudo nixos-rebuild switch --upgrade --flake ${flakeDir}";
|
|
||||||
|
|
||||||
hms = "nh home switch ${flakeDir}";
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = ''
|
||||||
|
$os$directory$git_branch$git_status
|
||||||
|
$status$character
|
||||||
|
'';
|
||||||
|
right_format = "$all";
|
||||||
|
|
||||||
conf = "$EDITOR ${flakeDir}/nixos/hosts/$(hostname)/configuration.nix";
|
cmake.disabled = true;
|
||||||
pkgs = "$EDITOR ${flakeDir}/nixos/packages.nix";
|
cmd_duration = {
|
||||||
|
format = "";
|
||||||
ll = "ls -l";
|
show_notifications = true;
|
||||||
se = "sudoedit";
|
notification_timeout = 10000;
|
||||||
ff = "fastfetch";
|
};
|
||||||
cat = "bat";
|
git_branch.format = "on [$branch(:$remote_branch)]($style) ";
|
||||||
cd = "z";
|
git_metrics.disabled = false;
|
||||||
|
git_status = {
|
||||||
|
conflicted = "!";
|
||||||
|
up_to_date = "ok";
|
||||||
|
stashed = "S";
|
||||||
|
modified = "M";
|
||||||
|
};
|
||||||
|
directory = {
|
||||||
|
truncation_length = 3;
|
||||||
|
fish_style_pwd_dir_length = 1;
|
||||||
|
read_only = " RO";
|
||||||
|
};
|
||||||
|
os.disabled = false;
|
||||||
|
python = {
|
||||||
|
symbol = "py ";
|
||||||
|
python_binary = ["python3" "python"];
|
||||||
|
};
|
||||||
|
status.disabled = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtra = ''
|
zsh = {
|
||||||
if [ -z "''${WAYLAND_DISPLAY}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then
|
|
||||||
dbus-run-session Hyprland
|
|
||||||
fi
|
|
||||||
eval "$(zoxide init zsh)"
|
|
||||||
eval "$(nh completions --shell zsh)"
|
|
||||||
'';
|
|
||||||
|
|
||||||
history.size = 10000;
|
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" "sudo" ];
|
enableCompletion = true;
|
||||||
theme = "agnoster"; # blinks is also really nice
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
shellAliases =
|
||||||
|
let
|
||||||
|
flakeDir = "~/nix";
|
||||||
|
in {
|
||||||
|
rb = "nh os switch ${flakeDir}";
|
||||||
|
upd = "nix flake update ${flakeDir}";
|
||||||
|
upg = "sudo nixos-rebuild switch --upgrade --flake ${flakeDir}";
|
||||||
|
|
||||||
|
hms = "nh home switch ${flakeDir}";
|
||||||
|
|
||||||
|
conf = "$EDITOR ${flakeDir}/nixos/hosts/$(hostname)/configuration.nix";
|
||||||
|
pkgs = "$EDITOR ${flakeDir}/nixos/packages.nix";
|
||||||
|
|
||||||
|
ll = "ls -l";
|
||||||
|
se = "sudoedit";
|
||||||
|
ff = "fastfetch";
|
||||||
|
cat = "bat";
|
||||||
|
cd = "z";
|
||||||
|
};
|
||||||
|
|
||||||
|
initExtra = ''
|
||||||
|
if [ -z "''${WAYLAND_DISPLAY}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then
|
||||||
|
dbus-run-session Hyprland
|
||||||
|
fi
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
eval "$(nh completions --shell zsh)"
|
||||||
|
'';
|
||||||
|
|
||||||
|
history.size = 10000;
|
||||||
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
||||||
|
oh-my-zsh.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user