trying out nushell
This commit is contained in:
parent
00a0bc5122
commit
b8a4eea53b
|
@ -357,7 +357,7 @@ colors:
|
||||||
# - (Linux/BSD) user login shell
|
# - (Linux/BSD) user login shell
|
||||||
# - (Windows) powershell
|
# - (Windows) powershell
|
||||||
shell:
|
shell:
|
||||||
program: fish
|
program: nu
|
||||||
# args:
|
# args:
|
||||||
# - --login
|
# - --login
|
||||||
|
|
||||||
|
|
|
@ -412,6 +412,27 @@
|
||||||
|
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
# ls = "exa -l";
|
||||||
|
la = "exa -la";
|
||||||
|
mpf = "mpv --profile=fast";
|
||||||
|
mps = "mpv --profile=slow";
|
||||||
|
ec = "emacsclient -t";
|
||||||
|
ecc = "emacsclient -c";
|
||||||
|
# mkdir = "mkdir -p";
|
||||||
|
nupd = "update-nix";
|
||||||
|
nupg = "upgrade-nix";
|
||||||
|
suspend = "systemctl suspend";
|
||||||
|
sysuse = "systemctl --user";
|
||||||
|
myip = "curl icanhazip.com";
|
||||||
|
nixs = "nix search nixpkgs";
|
||||||
|
ytd = "yt-dlp -o '~/Videos/%(title)s.%(ext)s'";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
let-env config = {
|
||||||
|
show_banner: false
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/dunst" = {
|
home.file.".config/dunst" = {
|
||||||
|
@ -505,6 +526,37 @@
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
|
settings = {
|
||||||
|
format = ''
|
||||||
|
\[(dimmed gray) $username$hostname$directory\](dimmed gray)
|
||||||
|
$character
|
||||||
|
'';
|
||||||
|
right_format = ''
|
||||||
|
$git_branch$git_status$rust$nix_shell
|
||||||
|
'';
|
||||||
|
scan_timeout = 10;
|
||||||
|
rust = {
|
||||||
|
format = "[$symbol($version )]($style)";
|
||||||
|
};
|
||||||
|
cmake = {
|
||||||
|
format = "";
|
||||||
|
disabled = true;
|
||||||
|
};
|
||||||
|
nix_shell = {
|
||||||
|
format = "[$symbol$state( \($name\))]($style) ";
|
||||||
|
impure_msg = " ";
|
||||||
|
pure_msg = " ";
|
||||||
|
};
|
||||||
|
hostname = {
|
||||||
|
format = "@[$ssh_symbol$hostname]($style) > '";
|
||||||
|
};
|
||||||
|
git_branch = {
|
||||||
|
format = "[$symbol$branch(:$remote_branch)]($style) ";
|
||||||
|
};
|
||||||
|
git_status = {
|
||||||
|
format = "[\\[$all_status$ahead_behind\\]]($style) |(dimmed gray) ";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
@ -513,7 +565,6 @@
|
||||||
# export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
|
# export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
|
||||||
source $(blesh-share)/ble.sh
|
source $(blesh-share)/ble.sh
|
||||||
ble-face auto_complete="fg=238"
|
ble-face auto_complete="fg=238"
|
||||||
# eval "$(starship init bash)"
|
|
||||||
# export LESS_TERMCAP_mb=$'\e[1;32m'
|
# export LESS_TERMCAP_mb=$'\e[1;32m'
|
||||||
# export LESS_TERMCAP_md=$'\e[1;32m'
|
# export LESS_TERMCAP_md=$'\e[1;32m'
|
||||||
# export LESS_TERMCAP_me=$'\e[0m'
|
# export LESS_TERMCAP_me=$'\e[0m'
|
||||||
|
@ -521,6 +572,7 @@
|
||||||
# export LESS_TERMCAP_so=$'\e[01;33m'
|
# export LESS_TERMCAP_so=$'\e[01;33m'
|
||||||
# export LESS_TERMCAP_ue=$'\e[0m'
|
# export LESS_TERMCAP_ue=$'\e[0m'
|
||||||
# export LESS_TERMCAP_us=$'\e[1;4;31m'
|
# export LESS_TERMCAP_us=$'\e[1;4;31m'
|
||||||
|
eval "$(starship init bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue