Skip to content

Commit fa1fa01

Browse files
committed
Update all shebangs to usr /usr/bin/env bash instead of /bin/bash
1 parent 866233b commit fa1fa01

30 files changed

+66
-68
lines changed

apt-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22

33
# Install scipt to install programs on ubuntu based system
44

cheat-sheet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
#Get a cheat sheet of a command line tool using cheat.sh
44

check-history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Grep zsh history, Much worse than <C-r> with fzf
44

colorpicker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
color=$(grim -g "$(slurp -b '#00000000' -p)" -t ppm - | magick - -format '%[pixel:p{0,0}]' txt:- | awk 'END{print $3}')
44

convert-to-png

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Convert all images to png, make them 1080p and remove original
44

fclip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
choice=$(cliphist list | fzf --ansi \
44
-d $'\t' \

fdots

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Fuzzy find through dotfiles and scripts
44

fman

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Fzf through man pages
44
compgen -c | fzf | xargs man

fpreview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Preview script for fzf used in various scripts
44

fshow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Git log and Git show wrapper
44

fwall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22

33
cd "$HOME"/wallpapers/Images/ || exit
44
fzf \

get-apt-history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22
#Print apt-get history EXCEPT for upgrades
33
# 2017-08-06
44
# 2020-10-07 Include packages installed by packagekit

get-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22
/sbin/ip -6 addr | grep inet6 | awk -F '[ \t]+|/' '{print $3}' | grep -v ^::1 | grep -v ^fe80

lf-arch-install

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
sudo pacman -S --needed lf
44

5-
read -n1 -r -p "Install my configs and dependencies(SwayKh)? [y,N]" doit
5+
read -n1 -r -p "Install my configs and dependencies(SwayKh)? [y,N]" doit
66

77
if [[ "$doit" == "y" || "$doit" == "Y" ]]; then
8-
echo "Downloading the configs"
9-
git clone https://github.com/SwayKh/dotfiles "$HOME"/dotfiles
10-
mkdir -p "$HOME"/.config/lf
11-
cp -r "$HOME"/dotfiles/.config/lf "$HOME"/.config/
12-
chmod +x "$HOME"/.config/lf/preview
8+
echo "Downloading the configs"
9+
git clone https://github.com/SwayKh/dotfiles "$HOME"/dotfiles
10+
mkdir -p "$HOME"/.config/lf
11+
cp -r "$HOME"/dotfiles/.config/lf "$HOME"/.config/
12+
chmod +x "$HOME"/.config/lf/preview
1313
sudo pacman -S --needed chafa bat cat glow mdcat tar unrar unzip
1414
fi
1515

@@ -20,10 +20,10 @@ package_manager="pacman"
2020
packages=("openssl" "file")
2121
# Check if the packages are installed
2222
if ! $package_manager -Qs "${packages[@]}" >/dev/null 2>&1; then
23-
echo "Packages ${packages[*]} are not installed. Installing..."
24-
sudo $package_manager -S --needed --noconfirm "${packages[@]}"
23+
echo "Packages ${packages[*]} are not installed. Installing..."
24+
sudo $package_manager -S --needed --noconfirm "${packages[@]}"
2525
else
26-
echo "Packages ${packages[*]} are already installed."
26+
echo "Packages ${packages[*]} are already installed."
2727
fi
2828

2929
echo "Setting Up Hack nerd font"

lf-install

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
# FOR UBUNTU AND FEDORA USE THIS SCRIPT, FOR ARCH USE lfArchInstall.sh
44

@@ -10,10 +10,9 @@
1010

1111
# Set up LF file manager with one script, Installs all the packages and configs needed
1212

13-
1413
# Download the latest release from GitHub
1514
echo "Downloading Latest Release"
16-
wget https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz > /dev/null 2>&1
15+
wget https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz >/dev/null 2>&1
1716

1817
# Extract to ~/bin
1918
mkdir -p "$HOME"/bin
@@ -22,30 +21,28 @@ chmod +x "$HOME"/bin/lf
2221

2322
# Add to PATH
2423
export_line="export PATH=\"$HOME/bin:$PATH\""
25-
echo "$export_line" >> ~/.bashrc
24+
echo "$export_line" >>~/.bashrc
2625
echo "Export PATH:~/bin command added to .bashrc"
2726

28-
2927
rm lf-linux-amd64.tar.gz
3028

31-
read -n1 -r -p "Install my configs and dependencies(SwayKh)? [y,N]" doit
29+
read -n1 -r -p "Install my configs and dependencies(SwayKh)? [y,N]" doit
3230

3331
if [[ "$doit" == "y" || "$doit" == "Y" ]]; then
34-
echo "Downloading the configs"
35-
git clone https://github.com/SwayKh/dotfiles "$HOME"/dotfiles
36-
mkdir -p "$HOME"/.config/lf
37-
cp -r "$HOME"/dotfiles/.config/lf "$HOME"/.config/
38-
chmod +x "$HOME"/.config/lf/preview
32+
echo "Downloading the configs"
33+
git clone https://github.com/SwayKh/dotfiles "$HOME"/dotfiles
34+
mkdir -p "$HOME"/.config/lf
35+
cp -r "$HOME"/dotfiles/.config/lf "$HOME"/.config/
36+
chmod +x "$HOME"/.config/lf/preview
3937
sudo apt install bat cat tar unzip chafa glow
4038
fi
4139

4240
echo "Setting Up Go-Mono nerd font"
43-
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Go-Mono.zip > /dev/null 2>&1
41+
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Go-Mono.zip >/dev/null 2>&1
4442
mkdir -p Go-Mono
45-
unzip Go-Mono.zip -d Go-Mono > /dev/null 2>&1
43+
unzip Go-Mono.zip -d Go-Mono >/dev/null 2>&1
4644
sudo mv Go-Mono /usr/share/fonts/truetype/
47-
fc-cache -f -v > /dev/null 2>&1
48-
45+
fc-cache -f -v >/dev/null 2>&1
4946

5047
# Installing dependencies
5148

list-river-window

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22
#
33
# For River
44
# Send notification of all running programs app id via lwst

list-size

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# List directory size in the Current directory
44
# command ls | xargs -d '\n' du -sh | sort -hr

not-most-used

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# For some reason the history command doesn't work inside a script
44
# and I can't get the output of .zsh_history

preview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
image() {
44
chafa "$1" -f sixels -s "${FZF_PREVIEW_COLUMNS}"x"${FZF_PREVIEW_LINES}" --polite on

random-fehbg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
feh --bg-fill "$(find ~/wallpapers/Images -type f | shuf -n 1)"

random-swaybg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
wall=$(find ~/wallpapers/Images/ -maxdepth 1 | shuf -n 1)
44
# path="/home/sumit/wallpapers/Images/$wall"

random-swwwbg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22

33
wall=$(find ~/wallpapers/Images/ -maxdepth 1 | shuf -n 1)
44
# path="/home/sumit/wallpapers/Images/$wall"

refresh-mirrors

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22
#
33
# Update mirrorlist for arch
44

screenshots/captureAll.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
location="$HOME"/Pictures/Screenshots/"$(date +'%s_grim.png')"
44

screenshots/captureArea.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
location="$HOME"/Pictures/Screenshots/"$(date +'%s_grim.png')"
44

screenshots/captureScreen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
location="$HOME"/Pictures/Screenshots/"$(date +'%s_grim.png')"
44

set-wall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
# If using swaybg
44
#

sync-dots

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22

33
echo " "
44
echo "=========Updating Linux Notes in Obsidian========="

update-roms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#! /usr/bin/env bash
22

33
sudo mount -t auto -v /dev/sda3 /mnt/Roms
44
sudo rsync -avhP "$HOME"/Roms/ /mnt/Roms/

yay-install

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22
# __ __ _ __ __
33
# \ \ / // \\ \ / /
4-
# \ V // _ \\ V /
5-
# | |/ ___ \| |
6-
# |_/_/ \_\_|
7-
#
4+
# \ V // _ \\ V /
5+
# | |/ ___ \| |
6+
# |_/_/ \_\_|
7+
#
88
# by Stephan Raabe (2023)
99
# ------------------------------------------------------
1010
# Install Script for Yay
@@ -26,20 +26,21 @@ echo ""
2626
# Confirm Start
2727
# -----------------------------------------------------
2828
while true; do
29-
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
30-
case $yn in
31-
[Yy]* )
32-
echo "Installation started."
33-
break;;
34-
[Nn]* )
35-
exit;
36-
break;;
37-
* ) echo "Please answer yes or no.";;
38-
esac
29+
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
30+
case $yn in
31+
[Yy]*)
32+
echo "Installation started."
33+
break
34+
;;
35+
[Nn]*)
36+
exit
37+
break
38+
;;
39+
*) echo "Please answer yes or no." ;;
40+
esac
3941
done
4042
git clone https://aur.archlinux.org/yay-git.git
4143
cd yay-git
4244
makepkg -si
4345

4446
echo "DONE!"
45-

0 commit comments

Comments
 (0)