bash
This commit is contained in:
27
home-manager/users/nathan/programs/terminal/bash/default.nix
Normal file
27
home-manager/users/nathan/programs/terminal/bash/default.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ oh-my-posh ];
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
ls = "eza";
|
||||||
|
ll = "ls -l";
|
||||||
|
|
||||||
|
ksh = "kitten ssh";
|
||||||
|
|
||||||
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
||||||
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
|
'') else (lib.mkBefore ''
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
|
'');
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
'') else (lib.mkBefore ''
|
'') else (lib.mkBefore ''
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/zsh/ohmyposh.toml)"
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
|
|
||||||
networking.hostName = lib.mkDefault config.sysconfig.host;
|
networking.hostName = lib.mkDefault config.sysconfig.host;
|
||||||
|
|
||||||
|
programs.bash.completion.enable = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user