Skip to content

Commit

Permalink
Bunch of stuff
Browse files Browse the repository at this point in the history
Changed scripts location
Added loops to the symlinks part of install.sh
Now the script copies profile file to /etc/profile
  • Loading branch information
NecRaul committed Mar 3, 2024
1 parent 07e7733 commit dd8fde1
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export MOZ_USE_XINPUT2="1"

# External sources for bashrc
source "$XDG_CONFIG_HOME/git/git-prompt.sh"
source "$XDG_CONFIG_HOME/zoxide/zoxide.sh"
source "$XDG_DATA_HOME/blesh/ble.sh" --rcfile "$XDG_CONFIG_HOME/blesh/init.sh"
source "$HOME/.local/bin/zoxide.sh"

# Start a tmux session when bash starts
if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ]; then
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 34 additions & 22 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,28 +146,34 @@ install_blesh() {
create_symlinks() {
echo "==================================================="
echo "Creating symlinks."
# / #
sudo cp -f $(pwd)/profile /etc/profile

# ~ #
cp -f $(pwd)/.bashrc $HOME/.bashrc
cp -f $(pwd)/.pypirc $HOME/.pypirc
# # #

# config #
ln -sf $(pwd)/.config/blesh $HOME/.config/blesh
ln -sf $(pwd)/.config/czkawka $HOME/.config/czkawka
ln -sf $(pwd)/.config/gallery-dl $HOME/.config/gallery-dl
ln -sf $(pwd)/.config/lf $HOME/.config/lf
ln -sf $(pwd)/.config/mpd $HOME/.config/mpd
ln -sf $(pwd)/.config/mpv $HOME/.config/mpv
ln -sf $(pwd)/.config/ncmpcpp $HOME/.config/ncmpcpp
ln -sf $(pwd)/.config/npm $HOME/.config/npm
ln -sf $(pwd)/.config/nvim $HOME/.config/nvim
ln -sf $(pwd)/.config/pip $HOME/.config/pip
ln -sf $(pwd)/.config/pyNPS $HOME/.config/pyNPS
ln -sf $(pwd)/.config/python $HOME/.config/python
ln -sf $(pwd)/.config/spectaclerc $HOME/.config/spectaclerc
ln -sf $(pwd)/.config/tmux $HOME/.config/tmux
ln -sf $(pwd)/.config/wget $HOME/.config/wget
ln -sf $(pwd)/.config/zathura $HOME/.config/zathura
for item in \
".config/blesh" \
".config/czkawka" \
".config/gallery-dl" \
".config/lf" \
".config/mpd" \
".config/mpv" \
".config/ncmpcpp" \
".config/npm" \
".config/nvim" \
".config/pip" \
".config/pyNPS" \
".config/python" \
".config/tmux" \
".config/wget" \
".config/zathura" \
".config/spectaclerc"; do
ln -sf "$(pwd)/$item" "$HOME/$item"
done
# # # # # #

# git #
Expand All @@ -177,12 +183,18 @@ create_symlinks() {
# # # #

# scripts #
ln -sf $(pwd)/.local/bin/*.sh $HOME/.local/bin/
ln -sf $(pwd)/.local/bin/fzfcode $HOME/.local/bin/
ln -sf $(pwd)/.local/bin/fzfvim $HOME/.local/bin/
ln -sf $(pwd)/.local/bin/4chan-pywal/4chan-pywal.sh $HOME/.local/bin/
ln -sf $(pwd)/.local/bin/pywal-kde-plasma/pywal.sh $HOME/.local/bin/
ln -sf $(pwd)/.local/bin/pywal-kde-plasma/zathurarc.template $HOME/.local/bin/
dirs=(
"$HOME/.local/bin/4chan-pywal"
"$HOME/.local/bin/pyupload-devel"
"$HOME/.local/bin/pywal-kde"
"$HOME/.local/bin/pywal-kde-plasma"
"$HOME/.local/bin/scripts"
"$HOME/.local/bin/statusbar"
)
for dir in "${dirs[@]}"; do
mkdir -p "$dir"
ln -sf "$(pwd)/${dir#$HOME/}/"* "$dir"
done
# # # # # #

echo "==================================================="
Expand Down

0 comments on commit dd8fde1

Please sign in to comment.