Compare commits

...

3 Commits

Author SHA1 Message Date
Jan Jastrow
074d7abd35 Fix eza/lsd detection 2024-08-10 22:22:03 +02:00
Jan Jastrow
102f197d4a Add source link 2024-08-10 19:36:57 +02:00
Jan Jastrow
b08e40c082 Run command (TMUX) on login via SSH 2024-08-10 19:34:07 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -13,10 +13,10 @@ export EDITOR="nano"
# set `ll` command - b(etter)ls per default
alias ll=bls
if test -f "$homebrew_path/eza"; then
if test -x "$(which eza)"; then
alias ll=eza
fi
if test -f "$homebrew_path/lsd"; then
if test -x "$(which lsd)"; then
alias ll=lsd
fi

7
zshrc
View File

@ -12,6 +12,13 @@ prompt_color2="#000000"
# Load zsh settings
source "$HOME/.dotfiles/zsh/settings"
# Run command when connected via SSH
# via: https://stackoverflow.com/questions/27613209/how-to-automatically-start-tmux-on-ssh-session/40192494#40192494
#
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
tmux attach-session -t default || tmux new-session -s default
fi
# Define platform
platform='Unknown'
if [[ $(uname) == 'Linux' ]]; then