mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 07:11:09 +00:00
Vim: open current snippet file; some java things for android development Bins: update commands provided by npm packages in home dir (By making symlinks to ~/.local/bin) my[editor] open file with format fname:123:* configs: spacefm config. openbox config.
17 lines
352 B
Bash
Executable File
17 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NPM_DIR=~/node_modules;
|
|
TARGET_BIN_PATH=~/.local/bin;
|
|
PACKAGES_WITH_BIN=$( find "$NPM_DIR" -name 'bin' );
|
|
|
|
cd $TARGET_BIN_PATH;
|
|
for i in $PACKAGES_WITH_BIN;do
|
|
echo "module: $i";
|
|
commands=$(ls $i);
|
|
echo "Commands: $commands";
|
|
for commandName in $commands;do
|
|
ln -s "$i/$commandName" "./$commandName";
|
|
done
|
|
done
|
|
|