Compare commits
2 Commits
main
...
fedora-kde
Author | SHA1 | Date |
---|---|---|
Luca Pellegrini | 4a7318c779 | |
Luca Pellegrini | 80337427d2 |
|
@ -0,0 +1 @@
|
|||
.directory
|
|
@ -0,0 +1,47 @@
|
|||
# .bash_aliases
|
||||
# Alias definitions
|
||||
# Questo file viene letto da ogni shell bash, dopo il file '~/.bashrc'
|
||||
|
||||
# Common commands
|
||||
alias q='exit'
|
||||
alias c='clear'
|
||||
alias h='history'
|
||||
alias cs='clear;ls'
|
||||
alias p='cat'
|
||||
alias o='xdg-open' # open any file in the configured default application
|
||||
#alias t='time'
|
||||
#alias k='kill'
|
||||
alias dolphin='dolphin --new-window'
|
||||
|
||||
# ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# confirm before overwriting something
|
||||
alias cp="cp -i"
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
|
||||
# Directories
|
||||
alias home='cd ~'
|
||||
alias data='cd /Data'
|
||||
alias root='cd /'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ..; cd ..'
|
||||
alias ....='cd ..; cd ..; cd ..'
|
||||
# Directories in Data partition
|
||||
#alias dendron-dir='cd /Data/Dendron'
|
||||
alias nextcloud='cd /Data/Nextcloud'
|
||||
|
||||
# Git
|
||||
alias g='git'
|
||||
#alias g-st='git status'
|
||||
#alias g-com='git commit'
|
||||
#alias pull='git pull'
|
||||
#alias push='git push'
|
|
@ -0,0 +1,21 @@
|
|||
# .bash_profile
|
||||
# In alcuni sistemi Unix-like, tra cui macOS, le impostazioni di ogni shell bash, di default, vengono salvate e lette dal file '~/.bash_profile'
|
||||
|
||||
# Source '~/.bashrc' if it exists
|
||||
# Legge il file '~/.bashrc', specifico per ogni utente
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
# The dot (.) command is a synonym for the source command
|
||||
|
||||
# User specific environment and startup programs
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
export PATH
|
150
bash/.bashrc
150
bash/.bashrc
|
@ -1,117 +1,67 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
#!/bin/bash
|
||||
# .bashrc
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
# The dot (.) command is a synonym for the source command
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
# User specific environment
|
||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
||||
then
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||
# export SYSTEMD_PAGER=
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
# User specific aliases and functions
|
||||
if [ -d ~/.bashrc.d ]; then
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
if [ -f "$rc" ]; then
|
||||
. "$rc"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
unset rc
|
||||
|
||||
# Don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
#HISTCONTROL=erasedups:ignoredups:ignorespace
|
||||
|
||||
# Append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# opzione già presente in /etc/bashrc in Fedora Linux
|
||||
#PROMPT_COMMAND='history -a'
|
||||
# opzione presente nel .bashrc di Chris Titu Tech
|
||||
|
||||
# For setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=10000
|
||||
|
||||
# Check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
# opzione già presente in /etc/bashrc in Fedora Linux
|
||||
|
||||
# Set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# 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 definitions.
|
||||
# Alias definitions
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
# Export some variables
|
||||
export EDITOR="kate"
|
||||
export TERMINAL="konsole"
|
||||
export BROWSER="firefox"
|
||||
|
|
|
@ -0,0 +1,117 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# 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 definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
|
@ -11,10 +11,12 @@
|
|||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
# Legge il file '~/.bashrc', specifico per ogni utente
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
# The dot (.) command is a synonym for the source command
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# cartelle e file nella partizione Data, da escludere nei backup con rsync
|
||||
|
||||
.Trash-1000/
|
||||
imm-disco/
|
||||
Immagini/temp/
|
||||
musica-altro/
|
||||
Musica/Downloads/
|
||||
Nextcloud/**
|
||||
SCGP/Immagini/
|
||||
temp/
|
||||
VMs/
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
|
||||
MNT_POINT='/run/media/luca/Linux-backup'
|
||||
|
||||
# Partizione "Data"
|
||||
EXCLUDES=$HOME/bin/exclude-Data.txt
|
||||
rsync -rlpogtv -n --exclude-from=$EXCLUDES --delete /Data/ $MNT_POINT/Data/
|
||||
|
||||
#rsync -rlpogtv --mkpath -n /Data/imm-disco/ $MNT_POINT/imm-disco/
|
||||
|
||||
# Linux Mint 21
|
||||
#rsync -rlpogtv --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Linux_Mint/Scaricati/
|
||||
#rsync -rlpogtv --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Linux_Mint/Scrivania/
|
||||
## Configuration files (Git repository)
|
||||
#rsync -rlpogtv --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Linux_Mint/config-files/
|
||||
## file nascosti
|
||||
#rsync -rlpogtv --mkpath -n $HOME/.thunderbird/ $MNT_POINT/Linux_Mint/.thunderbird/
|
||||
#rsync -rlpogtv --mkpath -n $HOME/.gnupg/ $MNT_POINT/Linux_Mint/.gnupg/
|
||||
|
||||
# Fedora KDE
|
||||
rsync -rlpogtv --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Fedora/Scaricati/
|
||||
rsync -rlpogtv --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Fedora/Scrivania/
|
||||
## Configuration files (Git repository)
|
||||
rsync -rlpogtv --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Fedora/config-files/
|
||||
|
||||
# home (generica)
|
||||
rsync -rlpogtv --mkpath -n $HOME/Pubblici/ $MNT_POINT/home/Pubblici/
|
||||
rsync -rlpogtv --mkpath -n $HOME/Modelli/ $MNT_POINT/home/Modelli/
|
||||
## bin
|
||||
rsync -rlpogtv --mkpath -n $HOME/bin/ $MNT_POINT/home/bin/
|
||||
rsync -rlpogtv --mkpath -n $HOME/.local/bin/ $MNT_POINT/home/.local/bin/
|
||||
## file nascosti
|
||||
rsync -rlpogtv --mkpath -n $HOME/.local/share/strawberry/ $MNT_POINT/home/.local/share/strawberry/
|
||||
rsync -rlpogtv --mkpath -n $HOME/.config/strawberry/ $MNT_POINT/home/.config/strawberry/
|
||||
rsync -rlpogt -n --delete $HOME/.local/share/TelegramDesktop/ $MNT_POINT/home/.local/share/TelegramDesktop/
|
||||
## themes e icons
|
||||
#rsync -rlpogtv --mkpath -n --delete $HOME/.icons/ $MNT_POINT/home/.icons/
|
||||
#rsync -rlpogtv --mkpath -n --delete $HOME/.themes/ $MNT_POINT/home/.themes/
|
||||
## altro
|
||||
rsync -rlpogtv --mkpath -n --delete $HOME/CD-audio/ $MNT_POINT/home/CD-audio/
|
||||
## VSCodium extensions
|
||||
rsync -rlpogt -n --delete $HOME/.vscode-oss/extensions/ $MNT_POINT/home/.vscode-oss/extensions/
|
||||
## SSH keys
|
||||
#rsync -rlpogtv --mkpath -n $HOME/.ssh/ $MNT_POINT/home/.ssh/
|
||||
|
||||
# Argomenti di rsync
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
MNT_POINT='/run/media/luca/HDD-1'
|
||||
|
||||
# Audio e Video
|
||||
MULTIMEDIA=$MNT_POINT/Multimedia
|
||||
rsync -av /Data/Immagini/ $MULTIMEDIA/Immagini/
|
||||
rsync -av --delete /Data/Musica/ $MULTIMEDIA/Musica/
|
||||
rsync -av /home/luca/CD-audio/ $MULTIMEDIA/musica-altro/CD-audio/
|
||||
rsync -av /Data/Podcast/ $MULTIMEDIA/Podcast/
|
||||
rsync -av /Data/Video/ $MULTIMEDIA/Video/
|
||||
|
||||
# Documenti e altro
|
||||
DOCS=$MNT_POINT/Documenti_e_altro
|
||||
rsync -av /Data/Libri/ $DOCS/Libri/
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
|
||||
MNT_POINT='/run/media/luca/Linux-backup'
|
||||
|
||||
# Partizione "Data"
|
||||
EXCLUDES=$HOME/bin/exclude-Data.txt
|
||||
rsync -rlpogtv --exclude-from=$EXCLUDES --delete /Data/ $MNT_POINT/Data/
|
||||
|
||||
#rsync -rlpogtv --mkpath /Data/imm-disco/ $MNT_POINT/imm-disco/
|
||||
|
||||
# Linux Mint 21
|
||||
#rsync -rlpogtv --mkpath --delete $HOME/Scaricati/ $MNT_POINT/Linux_Mint/Scaricati/
|
||||
#rsync -rlpogtv --mkpath --delete $HOME/Scrivania/ $MNT_POINT/Linux_Mint/Scrivania/
|
||||
## Configuration files (Git repository)
|
||||
#rsync -rlpogtv --mkpath --delete $HOME/config-files/ $MNT_POINT/Linux_Mint/config-files/
|
||||
## file nascosti
|
||||
#rsync -rlpogtv --mkpath $HOME/.thunderbird/ $MNT_POINT/Linux_Mint/.thunderbird/
|
||||
#rsync -rlpogtv --mkpath $HOME/.gnupg/ $MNT_POINT/Linux_Mint/.gnupg/
|
||||
|
||||
# Fedora KDE
|
||||
rsync -rlpogtv --mkpath --delete $HOME/Scaricati/ $MNT_POINT/Fedora/Scaricati/
|
||||
rsync -rlpogtv --mkpath --delete $HOME/Scrivania/ $MNT_POINT/Fedora/Scrivania/
|
||||
## Configuration files (Git repository)
|
||||
rsync -rlpogtv --mkpath --delete $HOME/config-files/ $MNT_POINT/Fedora/config-files/
|
||||
|
||||
# home (generica)
|
||||
rsync -rlpogtv --mkpath $HOME/Pubblici/ $MNT_POINT/home/Pubblici/
|
||||
rsync -rlpogtv --mkpath $HOME/Modelli/ $MNT_POINT/home/Modelli/
|
||||
## bin
|
||||
rsync -rlpogtv --mkpath $HOME/bin/ $MNT_POINT/home/bin/
|
||||
rsync -rlpogtv --mkpath $HOME/.local/bin/ $MNT_POINT/home/.local/bin/
|
||||
## file nascosti
|
||||
rsync -rlpogtv --mkpath $HOME/.local/share/strawberry/ $MNT_POINT/home/.local/share/strawberry/
|
||||
rsync -rlpogtv --mkpath $HOME/.config/strawberry/ $MNT_POINT/home/.config/strawberry/
|
||||
rsync -rlpogt --mkpath --delete $HOME/.local/share/TelegramDesktop/ $MNT_POINT/home/.local/share/TelegramDesktop/
|
||||
## themes e icons
|
||||
#rsync -rlpogtv --mkpath --delete $HOME/.icons/ $MNT_POINT/home/.icons/
|
||||
#rsync -rlpogtv --mkpath --delete $HOME/.themes/ $MNT_POINT/home/.themes/
|
||||
## altro
|
||||
rsync -rlpogtv --mkpath --delete $HOME/CD-audio/ $MNT_POINT/home/CD-audio/
|
||||
## VSCodium extensions
|
||||
rsync -rlpogt --mkpath --delete $HOME/.vscode-oss/extensions/ $MNT_POINT/home/.vscode-oss/extensions/
|
||||
## SSH keys
|
||||
#rsync -rlpogtv --mkpath $HOME/.ssh/ $MNT_POINT/home/.ssh/
|
||||
|
||||
# Argomenti di rsync
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
rsync -rlpogtv --delete --exclude "Downloads" /Data/Musica/ /run/media/luca/LUCA-32GB/Musica/
|
||||
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
rsync -rlpogtv -n --delete --exclude "Downloads" /Data/Musica/ /media/luca/LUCA-32GB/Musica/
|
||||
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rsync -rlpogtv --delete --exclude "Downloads" /Data/Musica/ /run/media/luca/SD-CARD/Musica/
|
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Partizione "Data"
|
||||
rsync -avn --exclude 'imm-disco' --exclude 'Immagini/temp' --exclude 'musica-altro' --exclude 'VMs' --exclude 'SCGP/Immagini' --exclude 'temp' --delete /Data/ /media/luca/Linux-backup/Data/
|
||||
|
||||
#rsync -av /Data/imm-disco/ /media/luca/Linux-backup/imm-disco/
|
||||
|
||||
# Linux Mint 21
|
||||
rsync -avn --delete /home/luca/Scaricati/ /media/luca/Linux-backup/Linux_Mint_21/Scaricati/
|
||||
rsync -avn --delete /home/luca/Scrivania/ /media/luca/Linux-backup/Linux_Mint_21/Scrivania/
|
||||
#rsync -av /home/luca/Pubblici/ /media/luca/Linux-backup/Linux_Mint_21/Pubblici/
|
||||
rsync -avn /home/luca/Modelli/ /media/luca/Linux-backup/Linux_Mint_21/Modelli/
|
||||
## file nascosti
|
||||
rsync -avn --delete /home/luca/.thunderbird/ /media/luca/Linux-backup/Linux_Mint_21/.thunderbird/
|
||||
rsync -avn /home/luca/.gnupg/ /media/luca/Linux-backup/Linux_Mint_21/.gnupg/
|
||||
rsync -avn /home/luca/.local/share/strawberry/ /media/luca/Linux-backup/Linux_Mint_21/.local/share/strawberry/
|
||||
rsync -avn --delete /home/luca/.local/share/TelegramDesktop/ /media/luca/Linux-backup/Linux_Mint_21/.local/share/TelegramDesktop/
|
||||
## themes e icons
|
||||
#rsync -avn --delete /home/luca/.icons/ /media/luca/Linux-backup/Linux_Mint_21/.icons/
|
||||
rsync -avn --delete /home/luca/.themes/ /media/luca/Linux-backup/Linux_Mint_21/.themes/
|
||||
|
||||
# Home directory (generale)
|
||||
rsync -avn --delete /home/luca/CD-audio/ /media/luca/Linux-backup/home/CD-audio/
|
||||
## Configuration files
|
||||
rsync -avn --delete /home/luca/config-files/ /media/luca/Linux-backup/home/config-files/
|
||||
## VSCodium extensions
|
||||
rsync -avn --delete /home/luca/.vscode-oss/extensions/ /media/luca/Linux-backup/home/.vscode-oss/extensions/
|
||||
## SSH keys
|
||||
rsync -avn /home/luca/.ssh/ /media/luca/Linux-backup/home/.ssh/
|
||||
# bin
|
||||
rsync -avn /home/luca/.local/bin/ /media/luca/Linux-backup/home/.local/bin/
|
||||
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Audio e Video
|
||||
rsync -av /Data/Immagini/ /media/luca/HDD-1/Multimedia/Immagini/
|
||||
rsync -av --delete /Data/Musica/ /media/luca/HDD-1/Multimedia/Musica/
|
||||
rsync -av /home/luca/CD-audio/ /media/luca/HDD-1/Multimedia/musica-altro/CD-audio/
|
||||
rsync -av /Data/Podcast/ /media/luca/HDD-1/Multimedia/Podcast/
|
||||
rsync -av /Data/Video/ /media/luca/HDD-1/Multimedia/Video/
|
||||
|
||||
# Documenti e altro
|
||||
rsync -av /Data/Libri/ /media/luca/HDD-1/Documenti_e_altro/Libri/
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Partizione "Data"
|
||||
rsync -av --exclude 'imm-disco' --exclude 'Immagini/temp' --exclude 'musica-altro' --exclude 'VMs' --exclude 'SCGP/Immagini' --exclude 'temp' --delete /Data/ /media/luca/Linux-backup/Data/
|
||||
|
||||
#rsync -av /Data/imm-disco/ /media/luca/Linux-backup/imm-disco/
|
||||
|
||||
# Linux Mint 21
|
||||
rsync -av --delete /home/luca/Scaricati/ /media/luca/Linux-backup/Linux_Mint_21/Scaricati/
|
||||
rsync -av --delete /home/luca/Scrivania/ /media/luca/Linux-backup/Linux_Mint_21/Scrivania/
|
||||
#rsync -av /home/luca/Pubblici/ /media/luca/Linux-backup/Linux_Mint_21/Pubblici/
|
||||
rsync -av /home/luca/Modelli/ /media/luca/Linux-backup/Linux_Mint_21/Modelli/
|
||||
## file nascosti
|
||||
rsync -av --delete /home/luca/.thunderbird/ /media/luca/Linux-backup/Linux_Mint_21/.thunderbird/
|
||||
rsync -av /home/luca/.gnupg/ /media/luca/Linux-backup/Linux_Mint_21/.gnupg/
|
||||
rsync -av /home/luca/.local/share/strawberry/ /media/luca/Linux-backup/Linux_Mint_21/.local/share/strawberry/
|
||||
rsync -av --delete /home/luca/.local/share/TelegramDesktop/ /media/luca/Linux-backup/Linux_Mint_21/.local/share/TelegramDesktop/
|
||||
## themes e icons
|
||||
#rsync -av --delete /home/luca/.icons/ /media/luca/Linux-backup/Linux_Mint_21/.icons/
|
||||
rsync -av --delete /home/luca/.themes/ /media/luca/Linux-backup/Linux_Mint_21/.themes/
|
||||
|
||||
# Home directory (generale)
|
||||
rsync -av --delete /home/luca/CD-audio/ /media/luca/Linux-backup/home/CD-audio/
|
||||
## Configuration files
|
||||
rsync -av --delete /home/luca/config-files/ /media/luca/Linux-backup/home/config-files/
|
||||
## VSCodium extensions
|
||||
rsync -av --delete /home/luca/.vscode-oss/extensions/ /media/luca/Linux-backup/home/.vscode-oss/extensions/
|
||||
## SSH keys
|
||||
rsync -av /home/luca/.ssh/ /media/luca/Linux-backup/home/.ssh/
|
||||
# bin
|
||||
rsync -av /home/luca/.local/bin/ /media/luca/Linux-backup/home/.local/bin/
|
||||
|
||||
# -a = -rlptgoD (no -A -X -U -N -H)
|
||||
# -r = recursive
|
||||
# -l = copy symlinks as symlinks
|
||||
# -p = preserve permissions
|
||||
# -t = preserve modification times
|
||||
# -g = preserve group
|
||||
# -o = preserve owner
|
||||
# -D = --devices --specials
|
||||
# --devices = preserve device-files (super-user only)
|
||||
# --specials = preserve special files
|
||||
|
|
@ -1 +0,0 @@
|
|||
rsync -av --delete --exclude ".thumbnails" /home/luca/Musica/ /media/luca/3335-3239/Music/
|
|
@ -0,0 +1,15 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist/album (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: interi album, di musica classica
|
||||
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
# Salva i file in sotto-cartelle di ~/Musica/Downloads/Classica:
|
||||
# ordinate per Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/Classica/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location m4a_aac-Classica-album
|
|
@ -1,10 +1,15 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare album musicali (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Pensato per: tanti brani dello stesso artista/album
|
||||
# Per scaricare playlist/album (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: tanti brani dello stesso artista/album
|
||||
|
||||
# Scarica nel formato .m4a (codec AAC) audio-only a c.a 129 kbps
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
# Salva i file in apposite sotto-cartelle di ~/Musica/Downloads:
|
||||
# Salva i file in sotto-cartelle di ~/Musica/Downloads:
|
||||
# ordinate per Artista/Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(artist)s/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location m4a_aac-by_artist-album
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare brani musicali (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
# Salva i file in ~/Musica/Downloads
|
||||
# nome file: Artista - Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(artist)s - %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location m4a_aac-single_hit
|
|
@ -0,0 +1,15 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist/album ... da (YT Music/...)
|
||||
# Per: ...
|
||||
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
# Salva i file in sotto-cartelle di ... (es. ~/Musica/Downloads)
|
||||
# ordinate per (...).m4a
|
||||
-o "... %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location m4a_aac-...
|
|
@ -1,13 +0,0 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist di brani (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Pensato per: album di "artisti vari"
|
||||
|
||||
# Scarica nel formato .m4a (codec AAC) audio-only a c.a 129 kbps
|
||||
-f 140
|
||||
|
||||
# Salva i file in apposite sotto-cartelle di ~/Musica/Downloads
|
||||
# ordinate per Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
# NB: il campo "release_year" non è disponibile per i brani scaricati da YT Music
|
||||
# (non è possibile smistare automaticamente i file scaricati dividendoli per anni)
|
|
@ -0,0 +1,15 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist/album (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: album di "artisti vari" (compilation, colonne sonore di film, etc.)
|
||||
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
# Salva i file in sotto-cartelle di ~/Musica/Downloads
|
||||
# ordinate per Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location m4a_aac-various_artists
|
|
@ -1,14 +1,17 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare album musicali (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Pensato per: tanti brani dello stesso artista/album
|
||||
# Per scaricare playlist/album (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: interi album, di musica classica
|
||||
|
||||
# Scarica nel nel codec opus a 137 kbps (audio-only, container webm)
|
||||
# Scarica nel nel codec Opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container ogg
|
||||
--remux-video ogg
|
||||
|
||||
# Salva i file in apposite sotto-cartelle di ~/Musica/Downloads:
|
||||
# ordinate per Artista/Album/"N° traccia" Titolo.m4a
|
||||
# Salva i file in sotto-cartelle di ~/Musica/Downloads/Classica:
|
||||
# ordinate per Album/"N° traccia" Titolo.ogg
|
||||
-o "~/Musica/Downloads/Classica/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
# Nel terminale: yt-dlp --config-location ~/.yt-dlp/opus-Classica-album
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location opus-Classica-album
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare album musicali (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Pensato per: tanti brani dello stesso artista/album
|
||||
# Per scaricare playlist/album (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: tanti brani dello stesso artista/album
|
||||
|
||||
# Scarica nel nel codec opus a 137 kbps (audio-only, container webm)
|
||||
# Scarica nel nel codec Opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container ogg
|
||||
--remux-video ogg
|
||||
|
@ -11,4 +11,7 @@
|
|||
# ordinate per Artista/Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(artist)s/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
# Nel terminale: yt-dlp --config-location ~/.yt-dlp/opus-by_artist-album
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location opus-by_artist-album
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare brani musicali (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per scaricare brani musicali (visibilità "non in elenco" o "pubblica") da YT Music
|
||||
|
||||
# Scarica nel nel codec opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container ogg
|
||||
--remux-video ogg
|
||||
|
||||
# Salva i file in ~/Musica/Downloads:
|
||||
# nominati come Artista - Titolo.m4a
|
||||
# Salva i file in ~/Musica/Downloads
|
||||
# nome file: Artista - Titolo.ogg
|
||||
-o "~/Musica/Downloads/%(artist)s - %(title)s.%(ext)s"
|
||||
|
||||
# Nel terminale: yt-dlp --config-location ~/.yt-dlp/opus-single_hit
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location opus-single_hit
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist/album ... da (YT Music/...)
|
||||
# Per: ...
|
||||
|
||||
# Scarica nel codec Opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container ogg
|
||||
--remux-video ogg
|
||||
|
||||
# Salva i file in sotto-cartelle di ... (es. ~/Musica/Downloads)
|
||||
# ordinate per (...).ogg
|
||||
-o "... %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location opus-...
|
|
@ -0,0 +1,17 @@
|
|||
# Config file per yt-dlp
|
||||
# Per scaricare playlist (con visibilità "non in elenco" o "pubblica") da YT Music
|
||||
# Per: album di "artisti vari" (compilation, colonne sonore di film, etc.)
|
||||
|
||||
# Scarica nel codec Opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container ogg
|
||||
--remux-video ogg
|
||||
|
||||
# Salva i file in sotto-cartelle di ~/Musica/Downloads
|
||||
# ordinate per Album/"N° traccia" Titolo.m4a
|
||||
-o "~/Musica/Downloads/%(album)s/%(playlist_index)s %(title)s.%(ext)s"
|
||||
|
||||
|
||||
# Nel terminale:
|
||||
#$ cd ~/.yt-dlp
|
||||
#$ yt-dlp --config-location opus-various_artists
|
|
@ -1,14 +1,13 @@
|
|||
# Config file per yt-dlp
|
||||
# Da posizionare nella cartella ~ (/home/luca/), definiscce le configurazioni di default di yt-dlp per l'utente corrente
|
||||
# Pensato per: singoli brani musicali da YT Music
|
||||
# Posto nella cartella ~ (/home/luca/), definiscce le configurazioni di default per l'utente corrente
|
||||
# Per: singoli brani musicali da YT Music
|
||||
|
||||
# Scarica nel nel codec opus a 137 kbps (audio-only, container webm)
|
||||
-f 251
|
||||
# Fa il remux del video/audio nel container opus
|
||||
#--remux-video ogg
|
||||
# Scarica nel codec AAC a ~130 kbps (audio-only, container m4a)
|
||||
-f 140
|
||||
|
||||
#Salva il file nella cartella ~/Musica/Downloads; nome file: "Artista - Titolo.m4a"
|
||||
# Salva il file nella cartella ~/Musica/Downloads
|
||||
# nome file: "Artista - Titolo.m4a"
|
||||
-o "~/Musica/Downloads/%(artist)s - %(title)s.%(ext)s"
|
||||
|
||||
#Se l'URL fa riferimento sia a un video che a una playlist, scarica solo il video/audio
|
||||
# Se l'URL fa riferimento sia a un video che a una playlist, scarica solo il video/audio
|
||||
--no-playlist
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
# .zsh_aliases
|
||||
# Alias definitions
|
||||
# Questo file viene letto da ogni shell zsh, dopo il file '~/.zshrc'
|
||||
|
||||
# Common commands
|
||||
alias q='exit'
|
||||
alias c='clear'
|
||||
alias h='history'
|
||||
alias cs='clear;ls'
|
||||
alias p='cat'
|
||||
alias o='xdg-open' # open any file in the configured default application
|
||||
#alias t='time'
|
||||
#alias k='kill'
|
||||
alias dolphin='dolphin --new-window'
|
||||
|
||||
# ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# confirm before overwriting something
|
||||
alias cp="cp -i"
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
|
||||
# Directories
|
||||
alias home='cd ~'
|
||||
alias data='cd /Data'
|
||||
alias root='cd /'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ..; cd ..'
|
||||
alias ....='cd ..; cd ..; cd ..'
|
||||
# Directories in Data partition
|
||||
#alias dendron-dir='cd /Data/Dendron'
|
||||
alias nextcloud='cd /Data/Nextcloud'
|
||||
|
||||
# Git
|
||||
alias g='git'
|
||||
#alias g-st='git status'
|
||||
#alias g-com='git commit'
|
||||
#alias pull='git pull'
|
||||
#alias push='git push'
|
|
@ -0,0 +1,36 @@
|
|||
#!/bin/zsh
|
||||
# .zshrc
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# Source '~/.local/share/zap/zap.zsh' if it exists
|
||||
# Legge il file di configurazione del plugin manager Zap, se presente
|
||||
if [ -f "$HOME/.local/share/zap/zap.zsh" ]; then
|
||||
source "$HOME/.local/share/zap/zap.zsh"
|
||||
fi
|
||||
|
||||
# History
|
||||
HISTFILE=~/.zsh_history
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=2000
|
||||
|
||||
# Export some variables
|
||||
export EDITOR="kate"
|
||||
export TERMINAL="konsole"
|
||||
export BROWSER="firefox"
|
||||
|
||||
# Alias definitions
|
||||
if [ -f "$HOME/.zsh_aliases" ]; then
|
||||
source "$HOME/.zsh_aliases"
|
||||
fi
|
||||
|
||||
# Plugins (Zap plugin manager)
|
||||
plug "romkatv/powerlevel10k"
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
Loading…
Reference in New Issue