mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
Adapt shebangs
Convert all shebangs to /usr/bin/env bash, if bash is really required in the script. Otherwise convert it to /bin/sh. /bin/bash is not available on all systems, while /usr/bin/env bash and /bin/sh are.
This commit is contained in:
parent
35d7d39126
commit
16aad7f4c5
12 changed files with 15 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
shopt -s autocd
|
shopt -s autocd
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
all)
|
all)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
FOCUSED=$(xprop -root _NET_ACTIVE_WINDOW | awk -F' ' '{print $NF}')
|
FOCUSED=$(xprop -root _NET_ACTIVE_WINDOW | awk -F' ' '{print $NF}')
|
||||||
if xprop -id ${FOCUSED} _NET_WM_STATE | grep -q _NET_WM_STATE_FULLSCREEN; then
|
if xprop -id ${FOCUSED} _NET_WM_STATE | grep -q _NET_WM_STATE_FULLSCREEN; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# shellcheck source=.lockvars
|
# shellcheck source=.lockvars
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#alias definitions
|
#alias definitions
|
||||||
alias chmox="chmod +x"
|
alias chmox="chmod +x"
|
||||||
alias cd..="cd .."
|
alias cd..="cd .."
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#correct some fast tipped cds
|
#correct some fast tipped cds
|
||||||
function c {
|
function c {
|
||||||
if [ $1 == "d.." ]; then
|
if [ $1 == "d.." ]; then
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh
|
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
x() {
|
x() {
|
||||||
for zipfile in $*; do
|
for zipfile in $*; do
|
||||||
local extractor
|
local extractor
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
#LP_ENABLE_RUNTIME=1
|
#LP_ENABLE_RUNTIME=1
|
||||||
LP_ENABLE_TITLE=1
|
LP_ENABLE_TITLE=1
|
||||||
LP_ENABLE_SSH_COLORS=1
|
LP_ENABLE_SSH_COLORS=1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for profile in ~/.profile.d/*.sh; do
|
for profile in ~/.profile.d/*.sh; do
|
||||||
if [ -x "$profile" ]; then
|
if [ -x "$profile" ]; then
|
||||||
source $profile
|
source $profile
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
function set_path(){
|
function set_path(){
|
||||||
if [[ -d "$1" ]]; then
|
if [[ -d "$1" ]]; then
|
||||||
export PATH=$1:$PATH
|
export PATH=$1:$PATH
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
export BROWSER=firefox
|
export BROWSER=firefox
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue