Skip to content

Instantly share code, notes, and snippets.

@dalgu90
Last active March 22, 2018 06:05
Show Gist options
  • Save dalgu90/82009ee5e6439e41518ec792441ec7e1 to your computer and use it in GitHub Desktop.
Save dalgu90/82009ee5e6439e41518ec792441ec7e1 to your computer and use it in GitHub Desktop.
Install linux ctags on local path
#!/bin/sh
PREFIX="$HOME/.local/"
install_ctags() {
# The project page of linux "ctags" command is located at http://ctags.sourceforge.net/
TMP_CTAGS_DIR="/tmp/$USER/ctags"; mkdir -p $TMP_CTAGS_DIR
wget -nc -O $TMP_CTAGS_DIR/ctags.tar.gz "http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz"
tar -xvzf $TMP_CTAGS_DIR/ctags.tar.gz -C $TMP_CTAGS_DIR --strip-components 1
cd $TMP_CTAGS_DIR
./configure --prefix=$PREFIX
make && make install
# Maybe $PREFIX/bin was added to $PATH, if you run the wookayin/dotfiles script
# echo "export PATH=$PREFIX/bin:$PATH"
}
install_ctags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment