mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
Commit from Office
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.
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user