alias init + debian aliases

This commit is contained in:
fanyx 2021-05-17 19:46:52 +02:00
commit 29c88de823
2 changed files with 43 additions and 0 deletions

12
.alias Normal file
View File

@ -0,0 +1,12 @@
# exa and ls
alias ls="exa --group-directories-first -gm"
alias ll="ls -lhF"
alias lt="ll -TL $1"
alias ld="ll -d"
alias la="ll -a"
# applications
alias code="codium"
# dotfiles
alias dot="/usr/bin/git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"

31
.debian.bash_aliases Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# import general use aliases
[[ -r ~/.alias ]] && . ~/.alias
# apt
alias ain="sudo apt install"
alias ar="sudo apt remove"
alias acln="sudo apt autoremove"
alias as="sudo apt search"
alias aqs="sudo apt show"
alias aql="sudo dpkg -l"
alias aqh="sudo apt-mark showhold"
function aup {
sudo apt update;
clear;
sudo apt list -u;
echo;
read -p "Upgrade? [Y/n] " choice;
case "$choice" in
y|Y|"" )
sudo apt upgrade -y;
;;
* )
return 1
;;
esac
}