some resturcturing of hm
This commit is contained in:
6
home/core/tui/default.nix
Normal file
6
home/core/tui/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./git
|
||||
./shell
|
||||
];
|
||||
}
|
||||
7
home/core/tui/git/default.nix
Normal file
7
home/core/tui/git/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "cnst";
|
||||
userEmail = "cnst@cana.st";
|
||||
};
|
||||
}
|
||||
35
home/core/tui/shell/adam.nix
Normal file
35
home/core/tui/shell/adam.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixconfig = "cd /home/adam/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "sudo nixos-rebuild switch --flake .#adampad";
|
||||
flakeupdate = "nix flake update";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
initExtra = ''
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
eval $(thefuck --alias)
|
||||
eval $(thefuck --alias FUCK)
|
||||
|
||||
eval "$(zellij setup --generate-auto-start zsh)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
60
home/core/tui/shell/cnst.nix
Normal file
60
home/core/tui/shell/cnst.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
dotDir = ".config/zsh";
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixconfig = "cd /home/cnst/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "nh os switch -v -H cnix";
|
||||
nixup = "nh os switch -H cnix";
|
||||
flakeupdate = "nh os switch -u -v -H cnix";
|
||||
flakeup = "nh os switch -u -H cnix";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
profileExtra = ''
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
'';
|
||||
initExtraFirst = ''
|
||||
autoload -U colors && colors
|
||||
'';
|
||||
initExtra = ''
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{143}(%F{167}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%F{143}) %F{202}%1{✗%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%F{143})"
|
||||
|
||||
ZSH_THEME_RUBY_PROMPT_PREFIX="%F{167}‹"
|
||||
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%f"
|
||||
|
||||
PROMPT='%F{143}%~%f $(git_prompt_info)$(virtualenv_prompt_info)
|
||||
%F{143}$ '
|
||||
|
||||
RPROMPT='$(ruby_prompt_info)'
|
||||
|
||||
VIRTUAL_ENV_DISABLE_PROMPT=0
|
||||
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %F{66}🐍 "
|
||||
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%f"
|
||||
ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
|
||||
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
|
||||
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
eval $(thefuck --alias)
|
||||
eval $(thefuck --alias FUCK)
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user