aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-01-10 18:39:41 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-01-10 18:39:41 +0000
commit74de7af4d68e765a5f2641761bc78138e70e9725 (patch)
tree490aefb93f55406c413d631382bc426421cd0d15 /.bashrc
parenta3e63f3e49af6360665f6e5045ee9b599294b18d (diff)
downloaddotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar.gz
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar.bz2
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar.lz
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar.xz
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.tar.zst
dotfiles-74de7af4d68e765a5f2641761bc78138e70e9725.zip
Add null-ls to neovim
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index a3adf36..f21cf89 100644
--- a/.bashrc
+++ b/.bashrc
@@ -19,15 +19,15 @@ fi
# Put your fun stuff here.
alias cls="clear"
-BAT="$(which bat || which batcat)"
+BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
if [ -n $BAT ]
then
alias cat="$BAT -p"
fi
-alias ls="$(which lsd || "ls -h -F --color=auto --group-directories-first")"
-alias sudo="$(which doas || which sudo || 'su -c')"
+alias ls="$(which lsd 2> /dev/null || echo "ls -h -F --color=auto --group-directories-first")"
+alias sudo="$(which doas 2> /dev/null || which sudo 2> /dev/null || echo 'su -c')"
alias codium="flatpak run com.vscodium.codium --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias tmux="tmux -2"