[zsh] Fix

This commit is contained in:
Tibo De Peuter 2023-10-19 23:02:17 +02:00
parent 4967fbe29e
commit 29ff9c1a01
3 changed files with 9 additions and 3 deletions

View file

@ -50,6 +50,7 @@ in {
nextcloud-client
nsxiv # Lightweight image viewer
obsidian
oh-my-zsh
qalculate-gtk # Calculator
spotify
tea # Gitea CLI
@ -100,7 +101,12 @@ in {
};
".oh-my-zsh" = {
enable = (builtins.elem pkgs.zsh installedPkgs);
source = ../../../../stow/zsh/.oh-my-zsh;
source = "${pkgs.oh-my-zsh}/share/oh-my-zsh";
recursive = true;
};
".oh-my-zsh/themes/tdpeuter.zsh-theme" = {
enable = (builtins.elem pkgs.zsh installedPkgs);
source = ../../../../stow/zsh/.oh-my-zsh/themes/tdpeuter.zsh-theme;
};
".vim" = {
enable = (builtins.elem pkgs.vim installedPkgs);

View file

@ -11,7 +11,7 @@ final: prev: {
installPhase = ''
mkdir -p $out/share/cmdtime
cp $src/cmdtime.plugin.zsh $out/share/cmdtime.plugin.zsh
cp $src/cmdtime.plugin.zsh $out/share/cmdtime/cmdtime.plugin.zsh
'';
};
}

View file

@ -6,7 +6,7 @@ fpath+="$HOME/.zsh/plugins/cmdtime"
plugins=(dirhistory git screen)
ZSH_CUSTOM="$HOME/.oh-my-zsh"
ZSH_THEME="tdpeuter"
# source $ZSH/oh-my-zsh.sh
source $ZSH_CUSTOM/oh-my-zsh.sh
if [[ -f "$HOME/.zsh/plugins/cmdtime/cmdtime.plugin.zsh" ]]; then
source "$HOME/.zsh/plugins/cmdtime/cmdtime.plugin.zsh"