update shell config
This commit is contained in:
parent
7e58c618cf
commit
81e9944719
6 changed files with 27 additions and 31 deletions
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
|
@ -3,6 +3,7 @@
|
|||
"esbenp.prettier-vscode",
|
||||
"jnoortheen.nix-ide",
|
||||
"mkhl.direnv",
|
||||
"nefrob.vscode-just-syntax"
|
||||
"nefrob.vscode-just-syntax",
|
||||
"tamasfe.even-better-toml"
|
||||
]
|
||||
}
|
||||
|
|
14
home/.config/starship.toml
Normal file
14
home/.config/starship.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
# https://starship.rs/config
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
format = """$directory$character"""
|
||||
right_format = """$all"""
|
||||
|
||||
[aws]
|
||||
disabled = true
|
||||
|
||||
[git_branch]
|
||||
format = '[$symbol$branch(:$remote_branch)]($style) '
|
||||
|
||||
[nix_shell]
|
||||
format = '[$symbol$state( \($name\))]($style) '
|
25
home/.zshrc
25
home/.zshrc
|
@ -1,28 +1,3 @@
|
|||
#region omz
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
plugins=(
|
||||
direnv
|
||||
fzf
|
||||
git
|
||||
zsh-interactive-cd
|
||||
zsh-syntax-highlighting
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
#endregion omz
|
||||
|
||||
#region aliases
|
||||
alias c='clear'
|
||||
alias e='eza --long --classify=always --color=always --icons=always --all --group-directories-first --binary --group --no-time --octal-permissions'
|
||||
alias y='yazi'
|
||||
#endregion aliases
|
||||
|
||||
#region pnpm
|
||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||
case ":$PATH:" in
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
|
||||
".profile".source = ../../home/.profile;
|
||||
".zshrc".source = ../../home/.zshrc;
|
||||
".config/starship.toml".source = ../../home/.config/starship.toml;
|
||||
};
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
".profile".source = ../../home/.profile;
|
||||
".zshrc".source = ../../home/.zshrc;
|
||||
".config/starship.toml".source = ../../home/.config/starship.toml;
|
||||
};
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
|
|
|
@ -2,16 +2,20 @@
|
|||
|
||||
{
|
||||
users.users.pomp.shell = pkgs.zsh;
|
||||
programs.starship.enable = true;
|
||||
|
||||
# https://mynixos.com/nixpkgs/options/programs.zsh
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
syntaxHighlighting.enable = true;
|
||||
shellAliases = {
|
||||
c = "clear";
|
||||
e = "eza --long --classify=always --color=always --icons=always --all --group-directories-first --binary --group --no-time --octal-permissions";
|
||||
y = "yazi";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
oh-my-zsh
|
||||
zsh-powerlevel10k
|
||||
fzf-zsh
|
||||
fzf
|
||||
eza
|
||||
tmux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue