summaryrefslogtreecommitdiffstats
path: root/.bashrc-dotfiles
blob: 55efdb836a89ee3eb9e8d486bc2c68f62da40267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# .bashrc-dotfiles

pentadactyl_bmarks_to_alias() {
	if test -h "${BASH_SOURCE}"; then
		local cmd1 cmd2 keyword cmd3 title url
		while read cmd1 cmd2 keyword cmd3 title url; do
			#echo $cmd1 "::" $cmd2 "::" $keyword "::" $cmd3 "::" $title "::" $url
			which "${keyword}" &>/dev/null || linkalias "${keyword}" "${url}"
		done < <(grep -E '^bmark\s' "$1" | sed ":GO;s|\(.*\)\('[^ ']*\)[ ]\(.*'\)\(.*\)|\1\2_\3\4|g;tGO" || :)
	fi
}

pentadactyl_bmarks_to_alias "$(dirname $(readlink -f ${BASH_SOURCE}))/scripts/firstrun/10-firefox/pentadactylrc-firstrun"

#unset -f pentadactyl_bmarks_to_alias