summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-30 13:20:29 +0200
committerPaul Buetow <paul@buetow.org>2026-01-30 13:20:29 +0200
commitad7aaf822c6a9565c01f5976fa4b3012aec6c4ec (patch)
tree550a3d2746cc6509470093608eb812e370758248
parent55715b6117bbe26307f1354c2fbd9ee5176ea241 (diff)
only 5
-rw-r--r--dotfiles/Rexfile15
-rw-r--r--dotfiles/zsh/zshrc (renamed from dotfiles/zsh/.zshrc)2
2 files changed, 9 insertions, 8 deletions
diff --git a/dotfiles/Rexfile b/dotfiles/Rexfile
index f6a3a39..839309e 100644
--- a/dotfiles/Rexfile
+++ b/dotfiles/Rexfile
@@ -160,10 +160,10 @@ task 'home_bash', sub {
desc 'Install ZSH configuration';
task 'home_zsh', sub {
if ( $^O eq 'darwin' ) {
- ensure "$DOT/zsh/.zshrc" => "$HOME/.zshrc";
+ ensure "$DOT/zsh/zshrc" => "$HOME/.zshrc";
}
else {
- Rex::Logger::info('Skipping ZSH configuration (not on macOS)', 'warn');
+ Rex::Logger::info( 'Skipping ZSH configuration (not on macOS)', 'warn' );
}
};
@@ -236,11 +236,11 @@ desc 'Manage ~/QuickEdit directory and symlinks';
task 'home_quickedit', sub {
if ( $^O eq 'linux' || $^O eq 'freebsd' ) {
Rex::Logger::info('Setting up ~/QuickEdit');
-
+
file "$HOME/QuickEdit",
ensure => 'directory',
mode => '0700';
-
+
my %symlinks = (
'data' => "$HOME/data/",
'Documents' => "$HOME/Documents//",
@@ -250,11 +250,11 @@ task 'home_quickedit', sub {
'public-snippets' => "$HOME/git/conf/snippets//",
'worktime' => "$HOME/git/worktime/",
);
-
+
for my $name ( keys %symlinks ) {
my $link_path = "$HOME/QuickEdit/$name";
my $target = $symlinks{$name};
-
+
# Remove existing symlink if it points to a different target
if ( -l $link_path ) {
my $current_target = readlink($link_path);
@@ -264,7 +264,7 @@ task 'home_quickedit', sub {
}
}
elsif ( -e $link_path ) {
- Rex::Logger::info("$link_path exists but is not a symlink, skipping", 'warn');
+ Rex::Logger::info( "$link_path exists but is not a symlink, skipping", 'warn' );
}
else {
symlink $target => $link_path or die "Could not create symlink $link_path: $!";
@@ -273,6 +273,7 @@ task 'home_quickedit', sub {
}
elsif ( $^O eq 'darwin' ) {
Rex::Logger::info('QuickEdit placeholder for macOS (not yet implemented)');
+
# TODO: Implement QuickEdit management for macOS
}
};
diff --git a/dotfiles/zsh/.zshrc b/dotfiles/zsh/zshrc
index f1241af..fa84d26 100644
--- a/dotfiles/zsh/.zshrc
+++ b/dotfiles/zsh/zshrc
@@ -2,7 +2,7 @@ if [ -f $HOME/.nofish ]; then
current_time=$(date +%s)
file_time=$(stat -f %m $HOME/.nofish)
time_diff=$((current_time - file_time))
- if [ $time_diff -gt 3600 ]; then
+ if [ $time_diff -gt 5 ]; then
rm -vf $HOME/.nofish
fi
fi