update shell config

This commit is contained in:
Kim, Jimin 2024-12-14 20:17:21 +09:00
parent 7e58c618cf
commit 81e9944719
Signed by: pomp
GPG key ID: D3932F82A0667A3B
6 changed files with 27 additions and 31 deletions

View file

@ -3,6 +3,7 @@
"esbenp.prettier-vscode",
"jnoortheen.nix-ide",
"mkhl.direnv",
"nefrob.vscode-just-syntax"
"nefrob.vscode-just-syntax",
"tamasfe.even-better-toml"
]
}

View 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) '

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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