diff options
| -rw-r--r-- | dotfiles/Rexfile | 10 | ||||
| -rw-r--r-- | dotfiles/fish/conf.d/worktime.fish | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/dotfiles/Rexfile b/dotfiles/Rexfile index d3c0b51..2cbdfe5 100644 --- a/dotfiles/Rexfile +++ b/dotfiles/Rexfile @@ -171,7 +171,15 @@ task 'home_bash', sub { desc 'Install fish configuration'; task 'home_fish', sub { - ensure "$DOT/fish/conf.d/*" => "$HOME/.config/fish/conf.d/"; + + # ensure "$DOT/fish/conf.d/*" => "$HOME/.config/fish/conf.d/"; + my $dest_dir = "$HOME/.config/fish/conf.d"; + if ( -d $dest_dir ) { + rename $dest_dir, "$dest_dir.old" + or die "Could not rename $dest_dir: $!"; + } + symlink "$DOT/fish/conf.d" => $dest_dir + or die "Could not create symlink: $!"; }; desc 'Vale and proselint'; diff --git a/dotfiles/fish/conf.d/worktime.fish b/dotfiles/fish/conf.d/worktime.fish index 45ed787..2b900a3 100644 --- a/dotfiles/fish/conf.d/worktime.fish +++ b/dotfiles/fish/conf.d/worktime.fish @@ -108,6 +108,6 @@ abbr -a wtstatus 'worktime::status' abbr -a wtf 'worktime --report' abbr -a random_exercise "sort -R $WORKTIME_DIR/exercises.md | head -n 1" abbr -a random_exercises "sort -R $WORKTIME_DIR/exercises.md | head -n 10" +abbr -a wl 'task add +work' abbr -a ql 'task add +personal' abbr -a pl 'task add +personal' -abbr -a wl 'task add +work' |
