Compare commits
2 Commits
3db341c44d
...
a2d6040ba8
Author | SHA1 | Date |
---|---|---|
urosm | a2d6040ba8 | |
urosm | 44b6fcf0ba |
|
@ -0,0 +1,69 @@
|
||||||
|
# .bashrc
|
||||||
|
# from dot.git
|
||||||
|
|
||||||
|
# check interactive
|
||||||
|
case $- in
|
||||||
|
*i*) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# history
|
||||||
|
shopt -s histappend
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
r="\[\e[00m\]"
|
||||||
|
b="\[\e[01m\]"
|
||||||
|
c4="\[\e[34m\]"
|
||||||
|
c7="\[\e[37m\]"
|
||||||
|
|
||||||
|
PS1="${b}\u@\h:$c4\w$c7\$$r "
|
||||||
|
|
||||||
|
unset e r b c4 c5 c7
|
||||||
|
|
||||||
|
# title
|
||||||
|
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
|
||||||
|
|
||||||
|
# functions
|
||||||
|
# stat
|
||||||
|
st () {
|
||||||
|
find "${1-.}" -mindepth 0 -maxdepth 1 -printf '%m %u %g %Y %p\n'\
|
||||||
|
| sort -V -k 4,5\
|
||||||
|
| column -t -N 'i,u,g,t,n' -R 'i,u' -d
|
||||||
|
}
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
# exit
|
||||||
|
alias q="exit"
|
||||||
|
alias :q="exit"
|
||||||
|
|
||||||
|
# grep
|
||||||
|
alias grep="grep --color=auto"
|
||||||
|
|
||||||
|
# ls
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
alias ll="ls --group-directories-first -A1v"
|
||||||
|
|
||||||
|
# git
|
||||||
|
alias gitl="git log --pretty=oneline"
|
||||||
|
alias gits="git status"
|
||||||
|
alias gitd="git diff"
|
||||||
|
alias gitc="git commit"
|
||||||
|
alias gita="git add"
|
||||||
|
|
||||||
|
# nvim
|
||||||
|
alias :e="nvim"
|
||||||
|
|
||||||
|
# newsboat
|
||||||
|
alias nb="newsboat"
|
||||||
|
|
||||||
|
# bash completion
|
||||||
|
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
|
|
@ -0,0 +1,104 @@
|
||||||
|
dotfiles
|
||||||
|
|
||||||
|
sudo apt install git
|
||||||
|
cd
|
||||||
|
git init
|
||||||
|
git remote add origin gitea@git.kompot.si:urosm/dot.git
|
||||||
|
git pull
|
||||||
|
git checkout main -f
|
||||||
|
|
||||||
|
|
||||||
|
locales
|
||||||
|
|
||||||
|
sudo dpkg-reconfigure locales
|
||||||
|
|
||||||
|
|
||||||
|
networking
|
||||||
|
|
||||||
|
sudo apt install network-manager
|
||||||
|
|
||||||
|
|
||||||
|
firewall
|
||||||
|
|
||||||
|
sudo apt install ufw
|
||||||
|
sudo ufw allow "SSH"
|
||||||
|
sudo ufw allow 1194/udp
|
||||||
|
|
||||||
|
|
||||||
|
mounting
|
||||||
|
|
||||||
|
sudo apt install udisks2
|
||||||
|
|
||||||
|
|
||||||
|
neovim
|
||||||
|
|
||||||
|
sudo apt install ninja-build gettext cmake unzip curl
|
||||||
|
git clone --depth 1 --branch v0.9.1 https://github.com/neovim/neovim
|
||||||
|
cd neovim
|
||||||
|
make CMAKE_BUILD_TYPE=Release
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
|
||||||
|
lua-language-server
|
||||||
|
|
||||||
|
sudo apt install ninja-build
|
||||||
|
git clone --depth 1 --branch 3.6.25 https://github.com/luals/lua-language-server
|
||||||
|
./make.sh
|
||||||
|
|
||||||
|
|
||||||
|
shell scripting
|
||||||
|
sudo apt install shellcheck
|
||||||
|
sudo apt install shfmt
|
||||||
|
|
||||||
|
|
||||||
|
sway
|
||||||
|
|
||||||
|
sudo apt install --no-install-recommends sway
|
||||||
|
sudo apt install swayidle swaylock
|
||||||
|
sudo apt install mako-notifier libnotify-bin
|
||||||
|
sudo apt install foot
|
||||||
|
sudo apt install fuzzel
|
||||||
|
sudo apt install grimshot
|
||||||
|
sudo apt install light wlsunset
|
||||||
|
sudo apt install fonts-agave
|
||||||
|
|
||||||
|
|
||||||
|
audio
|
||||||
|
|
||||||
|
sudo apt install pipewire-audio
|
||||||
|
systemctl --user --now enable wireplumber.service
|
||||||
|
|
||||||
|
|
||||||
|
web and media
|
||||||
|
|
||||||
|
sudo apt install firefox-esr
|
||||||
|
sudo apt install thunderbird
|
||||||
|
sudo apt install mpv
|
||||||
|
sudo apt install zathura
|
||||||
|
|
||||||
|
|
||||||
|
writing
|
||||||
|
|
||||||
|
sudo apt install pandoc
|
||||||
|
sudo apt install texlive-latex-recommended texlive-fonts-extra
|
||||||
|
|
||||||
|
|
||||||
|
office
|
||||||
|
|
||||||
|
sudo apt install libreoffice libreoffice-gtk3
|
||||||
|
sudo apt install libreoffice-l10n-sl
|
||||||
|
|
||||||
|
|
||||||
|
printing and scanning
|
||||||
|
|
||||||
|
sudo apt install cups
|
||||||
|
sudo apt install simple-scan
|
||||||
|
sudo apt install imagemagick
|
||||||
|
sudo apt install ocrmypdf
|
||||||
|
sudo apt install tesseract-ocr-slv
|
||||||
|
|
||||||
|
|
||||||
|
remote desktop
|
||||||
|
|
||||||
|
sudo apt install remmina
|
||||||
|
sudo apt install wireguard-tools
|
Loading…
Reference in New Issue