summaryrefslogtreecommitdiffstats
path: root/.bashrc-dotfiles
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-10-08 17:44:28 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-10-08 17:44:28 +0200
commit4ddb5e1770cb46a0a8e931dee9a556d3a5ebb5e5 (patch)
treef197249cde8bf20f71a813778e75b6414254ef3d /.bashrc-dotfiles
parentda094ee99dc5d2230d8e933b0ec3734ba3550446 (diff)
downloaddotfiles-4ddb5e1770cb46a0a8e931dee9a556d3a5ebb5e5.tar.gz
dotfiles-4ddb5e1770cb46a0a8e931dee9a556d3a5ebb5e5.tar.xz
dotfiles-4ddb5e1770cb46a0a8e931dee9a556d3a5ebb5e5.zip
Dotfiles-related part of .bashrc: do not shadow python et al.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.bashrc-dotfiles')
-rw-r--r--.bashrc-dotfiles2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc-dotfiles b/.bashrc-dotfiles
index 3b167eb..55efdb8 100644
--- a/.bashrc-dotfiles
+++ b/.bashrc-dotfiles
@@ -5,7 +5,7 @@ pentadactyl_bmarks_to_alias() {
local cmd1 cmd2 keyword cmd3 title url
while read cmd1 cmd2 keyword cmd3 title url; do
#echo $cmd1 "::" $cmd2 "::" $keyword "::" $cmd3 "::" $title "::" $url
- linkalias "${keyword}" "${url}"
+ which "${keyword}" &>/dev/null || linkalias "${keyword}" "${url}"
done < <(grep -E '^bmark\s' "$1" | sed ":GO;s|\(.*\)\('[^ ']*\)[ ]\(.*'\)\(.*\)|\1\2_\3\4|g;tGO" || :)
fi
}