bash: Piccole modifiche
* Sposta i file nella sottocartella 'common/HOME/bash/' * Apporta piccole modifiche
This commit is contained in:
parent
54ae465630
commit
662088b376
|
@ -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"
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue