forked from Shinonome/dots-hyprland
Remove redundant cd $(dirname $0) lines
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# This is NOT a script for execution, but for loading functions, so NOT need execution permission.
|
# This is NOT a script for execution, but for loading functions, so NOT need execution permission.
|
||||||
# NOTE that you NOT need to `cd ..' because the `$0' is NOT this file, but the script file which will source this file.
|
# NOTE that you NOT need to `cd ..' because the `$0' is NOT this file, but the script file which will source this file.
|
||||||
cd "$(dirname "$0")"
|
|
||||||
export base="$(pwd)"
|
# The script that use this file should have two lines on its top as follows:
|
||||||
|
# cd "$(dirname "$0")"
|
||||||
|
# export base="$(pwd)"
|
||||||
|
|
||||||
function try { "$@" || sleep 0; }
|
function try { "$@" || sleep 0; }
|
||||||
function v() {
|
function v() {
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
# This script depends on `functions' .
|
# This script depends on `functions' .
|
||||||
# This is NOT a script for execution, but for loading functions, so NOT need execution permission.
|
# This is NOT a script for execution, but for loading functions, so NOT need execution permission.
|
||||||
# NOTE that you NOT need to `cd ..' because the `$0' is NOT this file, but the script file which will source this file.
|
# NOTE that you NOT need to `cd ..' because the `$0' is NOT this file, but the script file which will source this file.
|
||||||
cd "$(dirname "$0")"
|
|
||||||
export base="$(pwd)"
|
# The script that use this file should have two lines on its top as follows:
|
||||||
|
# cd "$(dirname "$0")"
|
||||||
|
# export base="$(pwd)"
|
||||||
|
|
||||||
install-yay() {
|
install-yay() {
|
||||||
x sudo pacman -Sy --needed --noconfirm base-devel
|
x sudo pacman -Sy --needed --noconfirm base-devel
|
||||||
|
|||||||
Reference in New Issue
Block a user