Skip to content

Commit

Permalink
test & fix in Ubunty 22.x WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjenni committed Jan 22, 2024
1 parent 3a7f981 commit ef1d8ec
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
36 changes: 29 additions & 7 deletions bash/bash_aliases
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
function have {
hash "$1" >&/dev/null
}

alias cls='clear'
alias la='ls -AGF'
alias ls='ls -GF'
alias ll='ls -lGF'
if have lsd; then
alias la='lsd -a --group-directories-first'
alias ls='lsd --group-directories-first'
alias ll='lsd -l --group-directories-first'
else
alias la='ls -aGF'
alias ls='ls -GF'
alias ll='ls -lGF'
fi

if have bat; then
alias l='bat'
else
alias l='less'
fi

alias l='less'
export LESS="-c -i -x4 -J -w -M -r"
export VISUAL='nvim'
alias v='nvim'
Expand All @@ -27,12 +42,19 @@ fi
case `uname` in
'Darwin')
if [ -d "/opt/homebrew/bin" ] ; then
eval "$(/opt/homebrew/bin/brew shellenv)" ;;
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
;;
'Linux')
if [ -d "home/linuxbrew/.linuxbrew/bin" ] ; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" ;;
if [ -d "/home/linuxbrew/.linuxbrew/bin" ] ; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
;;
esac

if have starship; then
eval "$(starship init bash)"
fi
if have zoxide; then
eval "$(zoxide init bash)"
fi
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function installApps {
tmux
tre-command
tokei
wget
zoxide
xz
)

Expand All @@ -146,7 +146,7 @@ function installApps {
brew install --cask $_casks
;;
esac
exit $?
return $?
}

function copyFile {
Expand Down

0 comments on commit ef1d8ec

Please sign in to comment.