commit 35979b4688f224268c258d8864581552f61a9f30
parent 30aa2d2d2731d786139593bd90a0fe2031556d00
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Wed, 24 Mar 2021 11:42:08 +0100

env sh -> /bin/sh on shebangs

Diffstat:
M.config/nvim/templates/shebang.sh | 2+-
M.local/bin/configure-monitors | 2+-
M.local/bin/dotfiles-check | 2+-
M.local/bin/dwmblocks/dwmb-apt-updates | 2+-
M.local/bin/dwmblocks/dwmb-backlight | 3++-
M.local/bin/dwmblocks/dwmb-date | 2+-
M.local/bin/dwmblocks/dwmb-disk | 2+-
M.local/bin/dwmblocks/dwmb-internet | 2+-
M.local/bin/dwmblocks/dwmb-torrents | 2+-
M.local/bin/dwmblocks/dwmb-volume | 2+-
M.local/bin/git-head-abbrev | 2+-
M.local/bin/mount-drive | 2+-
M.local/bin/session-dmenu | 2+-
M.local/bin/sudoaskpass-dmenu | 2+-
M.local/bin/test-dunst | 2+-
M.local/bin/toggle-kbmap | 2+-
M.local/bin/update-vimrc-remotes | 2+-
M.local/bin/website | 2+-
M.local/share/dwm/autostart.sh | 2+-
M.profile | 2+-
20 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/.config/nvim/templates/shebang.sh b/.config/nvim/templates/shebang.sh @@ -1 +1 @@ -#!/usr/bin/env sh +#!/bin/sh diff --git a/.local/bin/configure-monitors b/.local/bin/configure-monitors @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh xr="${XDG_CONFIG_HOME:-$HOME/.config}/Xresources" diff --git a/.local/bin/dotfiles-check b/.local/bin/dotfiles-check @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh ndf="" diff --git a/.local/bin/dwmblocks/dwmb-apt-updates b/.local/bin/dwmblocks/dwmb-apt-updates @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh sudo apt-get update > /dev/null 2> /dev/null UPDATES="$(apt-get upgrade -s |grep -P '^\d+ upgraded'|cut -d" " -f1)" diff --git a/.local/bin/dwmblocks/dwmb-backlight b/.local/bin/dwmblocks/dwmb-backlight @@ -1,2 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh + echo " $(xbacklight -get)%" | sed "s/\.[0-9]*//g" diff --git a/.local/bin/dwmblocks/dwmb-date b/.local/bin/dwmblocks/dwmb-date @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh date +"%a %d %b, %H:%M" diff --git a/.local/bin/dwmblocks/dwmb-disk b/.local/bin/dwmblocks/dwmb-disk @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh #echo -n " "; df -h -l --output='used' "$HOME" | grep -E -o '[0-9\.]+G' echo -n " "; df -h -l --output='avail' "$HOME" | tail -n 1 | cut -d" " -f 2 diff --git a/.local/bin/dwmblocks/dwmb-internet b/.local/bin/dwmblocks/dwmb-internet @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = "up" ] && \ printf "%s\n" "$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" diff --git a/.local/bin/dwmblocks/dwmb-torrents b/.local/bin/dwmblocks/dwmb-torrents @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh transmission-remote -l | grep % | sed " # The letters are for sorting and will not appear. diff --git a/.local/bin/dwmblocks/dwmb-volume b/.local/bin/dwmblocks/dwmb-volume @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Displays the default device, volume, and mute status for i3blocks set -a diff --git a/.local/bin/git-head-abbrev b/.local/bin/git-head-abbrev @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh c="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" if [ "$c" = "HEAD" ]; then diff --git a/.local/bin/mount-drive b/.local/bin/mount-drive @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh get_drives() { lsblk -rpo "name,type,size,mountpoint" | sed '1d' | grep -v "/dev/sda" ; } format_drives() { awk '$2=="part"{printf "%s (%s%s)\n",$1,$3,($4=="")?"":", mounted"}' ; } diff --git a/.local/bin/session-dmenu b/.local/bin/session-dmenu @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh cmds="\ lock | slock diff --git a/.local/bin/sudoaskpass-dmenu b/.local/bin/sudoaskpass-dmenu @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh dmenu -P -p "$1" <&- && echo diff --git a/.local/bin/test-dunst b/.local/bin/test-dunst @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh pkill dunst dunst -config ~/.config/dunst/dunstrc & diff --git a/.local/bin/toggle-kbmap b/.local/bin/toggle-kbmap @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh if (setxkbmap -query | grep -q 'layout:\s\+us'); then setxkbmap es diff --git a/.local/bin/update-vimrc-remotes b/.local/bin/update-vimrc-remotes @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh scp $HOME/.config/nvim/init.vim blue:.config/nvim/init.vim ssh blue "nvim +PlugInstall +PlugClean! +qa" diff --git a/.local/bin/website b/.local/bin/website @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh SESSION=$USER diff --git a/.local/share/dwm/autostart.sh b/.local/share/dwm/autostart.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh xautolock -detectsleep -corners 0-00 -time 5 \ -locker "slock" \ diff --git a/.profile b/.profile @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/Xresources" &