*: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
XDG_CONF="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
BASE_DIR="$XDG_CONF/polybar"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## config
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# See https://github.com/polybar/polybar-scripts/pull/237
|
||||
|
||||
bluetooth_print() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The separation and recursion is sadly necessary since reload is apparently
|
||||
# executed in a subshell and thus using an environment variable does not work
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo $(curl -s https://ipinfo.io/ip)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Inspired by https://github.com/cramermarius/rofi-menus/blob/master/scripts/powermenu.sh
|
||||
|
||||
# entries with associated commands
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# !Modified! /usr/share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh
|
||||
|
||||
# Example locker script -- demonstrates how to use the --transfer-sleep-lock
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2019-11-28
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2021-05-15
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2020-09-13
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2020-08-28
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2021-05-14
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env zsh
|
||||
## Author: druckdev
|
||||
## Created: 2019-10-21
|
||||
##
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## Author: druckdev
|
||||
## Created: 2020-06-14
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
################################################################################
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TAGS_TO_TRANSFER=(
|
||||
-Orientation
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## This runs as a crontab every 5minutes ('*/5 * * * * /usr/local/bin/wifi-mute')
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# A hook script to check the commit log message.
|
||||
# Called by "git commit" with one argument, the name of the file that has the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[[ $# -eq 1 ]] || { echo "Specify what to do" >&2; exit 1; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user