40 karma · joined Apr 12, 2012 (14y ago) · 9 submissions
comment 3mo ago · link · parent
comment 13y ago · link · parent
I don’t want symlinks to be resolved (/var/www becomes /private/var/www on os x) so I modified it to store the path in the file:
export MARKPATH=$HOME/.marks
function jump {
mark=$(head -n 1 "$MARKPATH/$1" 2>/dev/null)
if [[ $mark != '' ]]; then
cd $mark
else
echo "No such mark: $1"
fi
}
function mark {
mkdir -p "$MARKPATH"; echo "$(pwd)" > "$MARKPATH/$1"
}
function unmark {
rm -i "$MARKPATH/$1"
}
function marks {
find "$MARKPATH" -type f | while read filename
do
printf "%-12s -> %s\n" $(basename ${filename}) $(head -n 1 ${filename})
done
}
I think the if syntax is zsh so probably won’t work with bash.comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
1. Are you making good progress on a personal level? (meaning learning the things you want to learn at a good pace.)
2. Does it have a negative impact on your financials?
I kept going until I was 15k € in debt and the startup was closed down. I don't regret it because I learnt so much. It took me less than 6 months to pay back my debt and I'm glad I didn't quit when things looked bad.