From b135c3bffc1bfdf636e74744a1402a2d7dacff64 Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Mon, 7 Aug 2023 15:18:11 +0200 Subject: [PATCH] Modified settings --- bash/.bashrc | 32 ++++++++++++++++++++++++++++++++ zsh/.zshrc | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 bash/.bashrc diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..baf4643 --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,32 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] +then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions +if [ -d ~/.bashrc.d ]; then + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done +fi + +unset rc + +# Auto start tmux +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ] && [ -z "$SSH_CONNECTION" ]; then + exec tmux +fi diff --git a/zsh/.zshrc b/zsh/.zshrc index 0a7a5f2..ba6e3c6 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -111,6 +111,6 @@ zstyle ':completion:*:man:*' menu yes select export PATH="$PATH:/home/eyedevelop/.local/bin" # Auto start tmux -if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ] && [ -z "$SSH_CONNECTION" ]; then exec tmux fi