diff --git a/bash/.bash_aliases b/common/HOME/bash/.bash_aliases similarity index 88% rename from bash/.bash_aliases rename to common/HOME/bash/.bash_aliases index 035ccc4..aeaa181 100644 --- a/bash/.bash_aliases +++ b/common/HOME/bash/.bash_aliases @@ -13,10 +13,10 @@ alias o='xdg-open' # open any file in the configured default application #alias k='kill' # exa/ls aliases -alias ls="exa --icons --color=always --group-directories-first" +alias ls="exa --icons --color=auto --group-directories-first" alias la="ls --all" alias ll="ls --all --long --group --header" -alias tree="ll --tree -L 3" +alias tree="ls --all --tree -L 3" # Colorize grep output (good for log files) alias grep="grep --color=auto" @@ -52,10 +52,11 @@ alias pull="git pull" alias push="git push" # apt -alias upgrade="sudo apt update && sudo apt upgrade" +alias upgrade="sudo freshclam; sudo apt update && sudo apt upgrade" alias apt-info="apt show" # Altri programmi usati di frequente +alias python="python3" alias dolphin="dolphin --new-window" alias dendron="/usr/bin/codium --new-window /Data/Dendron/dendron.code-workspace" alias email="thunderbird" diff --git a/bash/.bash_profile b/common/HOME/bash/.bash_profile similarity index 86% rename from bash/.bash_profile rename to common/HOME/bash/.bash_profile index 522de74..8267ee2 100644 --- a/bash/.bash_profile +++ b/common/HOME/bash/.bash_profile @@ -18,6 +18,9 @@ if [ -n "$BASH_VERSION" ]; then fi # Environment variables +# set PATH so it includes 'sbin' directories +PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin" + # set PATH so it includes '~/AppImage' directory, if it exists if [ -d "$HOME/AppImage" ] ; then PATH="$HOME/AppImage:$PATH" @@ -27,8 +30,6 @@ fi if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi - -# set PATH so it includes user's private bin, if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi @@ -37,3 +38,6 @@ fi export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" + +# Start ssh-agent in the background +eval "$(ssh-agent -s)" > /dev/null diff --git a/bash/.bashrc b/common/HOME/bash/.bashrc similarity index 92% rename from bash/.bashrc rename to common/HOME/bash/.bashrc index a204673..3f636eb 100644 --- a/bash/.bashrc +++ b/common/HOME/bash/.bashrc @@ -94,7 +94,7 @@ fi # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert -alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +#alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' # Alias definitions. # Source my custom aliases, which are stored in a separate file @@ -118,13 +118,13 @@ if ! shopt -oq posix; then fi # Environment variables -if [ -n "$DISPLAY" ]; then - export EDITOR=xed -elif [ -n "$WAYLAND_DISPLAY" ]; then - export EDITOR=xed -else - export EDITOR=nano -fi +#if [ -n "$DISPLAY" ]; then +# export EDITOR=xed +#elif [ -n "$WAYLAND_DISPLAY" ]; then +# export EDITOR=xed +#else +# export EDITOR=nano +#fi if [ -n "$DISPLAY" ]; then export BROWSER=firefox diff --git a/bash/.profile b/common/HOME/bash/.profile similarity index 100% rename from bash/.profile rename to common/HOME/bash/.profile