correceted zsh imports
This commit is contained in:
@@ -114,6 +114,7 @@
|
|||||||
zoxide
|
zoxide
|
||||||
yazi
|
yazi
|
||||||
fzf
|
fzf
|
||||||
|
zip
|
||||||
];
|
];
|
||||||
|
|
||||||
# Firewall settings
|
# Firewall settings
|
||||||
|
|||||||
+21
-2
@@ -22,7 +22,27 @@ in
|
|||||||
programs.fzf.enableZshIntegration = true;
|
programs.fzf.enableZshIntegration = true;
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
programs.zoxide.enableZshIntegration = true;
|
programs.zoxide.enableZshIntegration = true;
|
||||||
programs.zsh.envExtra = ["LANG=en_US.UTF-8" "EDITOR='nano'"];
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
initContent = ''
|
||||||
|
zipdirs() {
|
||||||
|
for f in ./*; do
|
||||||
|
if [ -d "$f" ]; then
|
||||||
|
find "$f" -type f -name "*.txt" -delete
|
||||||
|
if [ -n "$(find "$f" -mindepth 1 -type d -print -quit)" ]; then
|
||||||
|
echo "Skipping $f: contains sub-folders"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
zip -0 -r -j "$f.zip" "$f"/* && rm -rf "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
envExtra = ''
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export EDITOR='nano'
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users."${config.vars.username}" = {
|
home-manager.users."${config.vars.username}" = {
|
||||||
@@ -41,7 +61,6 @@ in
|
|||||||
programs.fzf.enableZshIntegration = true;
|
programs.fzf.enableZshIntegration = true;
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
programs.zoxide.enableZshIntegration = true;
|
programs.zoxide.enableZshIntegration = true;
|
||||||
programs.zsh.envExtra = ["LANG=en_US.UTF-8" "EDITOR='nano'"];
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
addKeysToAgent = "yes";
|
addKeysToAgent = "yes";
|
||||||
|
|||||||
Reference in New Issue
Block a user