diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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)" |