61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
|
# .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'
|
||
|
|
||
|
# exa/ls aliases (overwritten if 'exa' zsh plugin is enabled)
|
||
|
alias ls="exa --icons --color=auto --group-directories-first"
|
||
|
alias la="ls -a"
|
||
|
alias ll="ls -al -g -h"
|
||
|
alias tree="ll --tree -L 3"
|
||
|
|
||
|
# 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 home and Data partition
|
||
|
alias libri="cd $HOME/Libri"
|
||
|
alias dendron-git="cd /Data/Dendron && git status"
|
||
|
alias nextcloud="cd /Data/Nextcloud && la"
|
||
|
alias python-lab="cd /Data/Git/python-lab && la"
|
||
|
alias programmazione="cd /Data/Programmazione && la"
|
||
|
|
||
|
# Git
|
||
|
alias g='git'
|
||
|
alias g-ad='git add'
|
||
|
alias g-st='git status'
|
||
|
alias g-com='git commit'
|
||
|
#alias g-pl='git pull'
|
||
|
#alias g-ps='git push'
|
||
|
|
||
|
# apt
|
||
|
alias upgrade="sudo apt update && sudo apt upgrade"
|
||
|
alias apt-info="apt show"
|
||
|
|
||
|
# Altri programmi usati di frequente
|
||
|
alias dolphin="dolphin --new-window"
|
||
|
alias dendron="/usr/bin/codium --new-window /Data/Dendron/dendron.code-workspace"
|
||
|
alias email="thunderbird"
|