summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-23 13:00:51 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-23 13:01:37 +0100
commitf640854d7cb7ac3acae74685860695a1b682491d (patch)
treeed53537254d327d2ca6314317771581c084839b1 /.bashrc
parent573ba6c815f092012e8f2f13649e5d689cb74308 (diff)
bash: Prefer single brackets
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc6
1 files changed, 3 insertions, 3 deletions
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"