I am developing a simple cli-application for timetracking. The idea is to have fish-aliases source r-scripts to create timestamps in a timetable. Like so:
alias checkin='rscript (echo $PWD/checkin.R)'
However writing it like this only allows me to call the alias if I am standing in the correct directory. Is there a way for me to hardcode the current path, so I can call it from any directory?
rscript (echo $PWD/checkin.R)
work from any directory when not in an alias?