Compare commits
2 Commits
5a6d64d401
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 54baed66d2 | |||
|
|
67d73a4c71 |
@@ -14,4 +14,6 @@ unset SSH_ASKPASS
|
|||||||
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
||||||
eval "`dircolors -b $DIR_COLORS`"
|
eval "`dircolors -b $DIR_COLORS`"
|
||||||
|
|
||||||
|
export PATH=$PATH:$HOME/.local/bin
|
||||||
|
|
||||||
#### END MAGIC VALUE: AZSQFRB8
|
#### END MAGIC VALUE: AZSQFRB8
|
||||||
|
|||||||
20
gentags
Executable file
20
gentags
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CSCOPE_DIR="$PWD/cscope"
|
||||||
|
|
||||||
|
if [ ! -d "$CSCOPE_DIR" ]; then
|
||||||
|
mkdir "$CSCOPE_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finding files ..."
|
||||||
|
find "$PWD" -type d \( -name regs -o -name reg \) -prune \
|
||||||
|
-o -name '*.[ch]' \
|
||||||
|
-o -name '*.cpp' \
|
||||||
|
-o -name '*.cc' \
|
||||||
|
-o -name '*.hpp' > "$CSCOPE_DIR/cscope.files"
|
||||||
|
|
||||||
|
echo "Adding files to cscope db: $PWD/cscope.db ..."
|
||||||
|
cscope -b -i "$CSCOPE_DIR/cscope.files"
|
||||||
|
|
||||||
|
export CSCOPE_DB="$PWD/cscope.out"
|
||||||
|
echo "Exported CSCOPE_DB to: '$CSCOPE_DB'"
|
||||||
11
setup.sh
11
setup.sh
@@ -18,11 +18,18 @@ git submodule init
|
|||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
|
|
||||||
echo "Copying configs"
|
echo "Copying configs"
|
||||||
copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
|
config_copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
|
||||||
for config in ${copy_list[@]}; do
|
for config in ${config_copy_list[@]}; do
|
||||||
cp -fr "$config" $HOME/."$config"
|
cp -fr "$config" $HOME/."$config"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "Copying scripts"
|
||||||
|
mkdir -p "${HOME}/.local/bin"
|
||||||
|
script_copy_list=(update-dns.sh gentags)
|
||||||
|
for script in ${script_copy_list[@]}; do
|
||||||
|
cp -fr "${script}" "${HOME}/.local/bin/${script}"
|
||||||
|
done
|
||||||
|
|
||||||
echo "=========================================================="
|
echo "=========================================================="
|
||||||
echo "= Be sure to adjust the Git user/email as necessary!!!!! ="
|
echo "= Be sure to adjust the Git user/email as necessary!!!!! ="
|
||||||
echo "=========================================================="
|
echo "=========================================================="
|
||||||
|
|||||||
4
update-dns.sh
Executable file
4
update-dns.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dns=$(nslookup.exe www.google.com 2>&1 | grep "Address:" | awk '{print $2}' | tr -d '\r')
|
||||||
|
printf "nameserver %s\n" "$dns" | tee /etc/resolv.conf
|
||||||
Reference in New Issue
Block a user