summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_profile6
-rw-r--r--.bashrc6
2 files changed, 6 insertions, 6 deletions
diff --git a/.bash_profile b/.bash_profile
index 7df32b7..517c89b 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -1,13 +1,13 @@
-[[ -z "$XDG_RUNTIME_DIR" ]] && export XDG_RUNTIME_DIR="/run/user/$UID"
+[ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR="/run/user/$UID"
-if [[ ! -d "$XDG_RUNTIME_DIR" ]]
+if [ ! -d "$XDG_RUNTIME_DIR" ]
then
mkdir "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
fi
readonly tty="$(tty)"
-[[ -f ~/.bashrc ]] && source ~/.bashrc
+[ -f ~/.bashrc ] && source ~/.bashrc
if [[ -z "$DISPLAY" && -z "$NIRI_LOADED" && "$tty" = /dev/tty1 ]]
then
export LIBSEAT_BACKEND=seatd
diff --git a/.bashrc b/.bashrc
index 7ce2d8f..eb4c02f 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,6 +1,6 @@
# If not running interactively, don’t do anything
[[ $- != *i* ]] && return
-[[ -f /etc/bashrc ]] && . /etc/bashrc
+[ -f /etc/bashrc ] && . /etc/bashrc
function __dir_search {
local qry="$1"
@@ -13,7 +13,7 @@ function __dir_search {
| sort -r \
| fzf -q "$qry"
)
- [[ -n "$dir" ]] && pushd "$base/$dir"
+ [ -n "$dir" ] && pushd "$base/$dir"
}
function jr {
@@ -135,7 +135,7 @@ command -v fzf >/dev/null && eval "$(fzf --bash)"
command -v eww >/dev/null && eval "$(eww shell-completions --shell bash)"
command -v niri >/dev/null && eval "$(niri completions bash)"
-if [[ -d "$NVM_DIR" ]]
+if [ -d "$NVM_DIR" ]
then
. "$NVM_DIR/nvm.sh"
. "$NVM_DIR/bash_completion"