1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-12 05:40:17 +00:00

Add maskedpw script and move nvidia-vsync and touchpad.sh scripts to bin directory, and install all executables in bin directory to $HOME/.local/bin directory

This commit is contained in:
Luna 2023-04-08 00:35:03 +02:00
parent b714b077d4
commit f5c787af2c
4 changed files with 12 additions and 0 deletions

6
bin/maskedpw Normal file
View file

@ -0,0 +1,6 @@
#!/bin/zsh
read -r pass
exec <&2
while echo -n '$ '; read idx; do
echo "${pass[$idx]}"
done

View file

@ -28,4 +28,10 @@ if [ -n "${NPM_CONFIG_PREFIX}" ]; then
sed -i "s%\# export NPM_CONFIG_PREFIX=\"\"%export NPM_CONFIG_PREFIX=\"$NPM_CONFIG_PREFIX\"%g" $HOME/.zsh/env.zsh
fi
cp -v .tmux.conf ~/.tmux.conf
echo "[*] installing executables"
find bin -type f | while read -r file; do
install $file $(echo $file | sed "s|bin|$HOME/.local/bin|")
done
source $HOME/.zshrc