aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-01-18 20:24:34 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-01-18 20:24:34 +0000
commited903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c (patch)
tree1b73a36c9c57f9fcc650358081c17f0be5f78c20 /.bashrc
parent10b49adb9849f38ebcb2aaa96c2e16c279d1359b (diff)
downloaddotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar.gz
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar.bz2
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar.lz
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar.xz
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.tar.zst
dotfiles-ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c.zip
Better shell scripts
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc15
1 files changed, 9 insertions, 6 deletions
diff --git a/.bashrc b/.bashrc
index 70e9699..29fef1e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -10,7 +10,8 @@
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
-if [[ $- != *i* ]] ; then
+if [[ $- != *i* ]]
+then
# Shell is non-interactive. Be done now!
return
fi
@@ -21,22 +22,24 @@ fi
alias cls="clear"
BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
-if [ -n $BAT ]
+if [ -n "$BAT" ]
then
alias cat="$BAT -p"
fi
-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 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"
. /usr/share/bash-completion/bash_completion
-for f in $HOME/.local/share/bash-completion/*; do
+for f in $HOME/.local/share/bash-completion/*
+do
. "$f"
done
-GPG_TTY="$(tty)" export GPG_TTY;
+GPG_TTY="$(tty)"
+export GPG_TTY
eval "$(starship init bash)"