update .bashrc, aliases, README

This commit is contained in:
Frieder Schlesier 2024-07-21 16:04:42 +02:00
parent aaa97a3b9b
commit a37efb9245
4 changed files with 33 additions and 11 deletions

View File

@ -8,6 +8,7 @@ alias upnodock='sudo apt-mark hold docker-ce docker-ce-cli && sudo apt update &&
alias o='xdg-open' alias o='xdg-open'
alias s='kitty +kitten ssh' alias s='kitty +kitten ssh'
alias ssh='kitty +kitten ssh'
alias cat='bat' alias cat='bat'
# alias rg='ripgrep' # alias rg='ripgrep'
alias ll='eza -ahlF' alias ll='eza -ahlF'
@ -32,6 +33,7 @@ alias act='sudo systemctl -l -t service --state=active'
alias fai='sudo systemctl -l -t service --state=failed' alias fai='sudo systemctl -l -t service --state=failed'
# basic docker shortcuts # basic docker shortcuts
alias docker='podman'
alias dps='docker container ls -a' alias dps='docker container ls -a'
alias di='docker image ls' alias di='docker image ls'
alias dv='docker volume ' alias dv='docker volume '

27
.bashrc
View File

@ -8,25 +8,31 @@ case $- in
*) return;; *) return;;
esac esac
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# don't put duplicate lines or lines starting with space in the history. # don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options # See bash(1) for more options
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
# allow docker to use X
# if [ -f /usr/bin/xhost ]; then
# xhost +local:root
# fi
# Load the shell dotfiles, and then some: # Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`. # * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you dont want to commit. # * ~/.extra can be used for other settings you dont want to commit.
for file in ~/.{aliases,bash_prompt,functions,path,dockerfunc,extra,exports}; do for file in ~/.{bash_aliases,exports}; do
[[ -r "$file" ]] && [[ -f "$file" ]] && source "$file" [[ -r "$file" ]] && [[ -f "$file" ]] && source "$file"
done done
unset file unset file
for file in /usr/share/fzf/{key-bindings.bash,completion.bash}; do for file in /usr/share/fzf/shell/{key-bindings.bash,completion.bash}; do
[[ -r "$file" ]] && [[ -f "$file" ]] && source "$file" [[ -r "$file" ]] && [[ -f "$file" ]] && source "$file"
done done
unset file unset file
@ -138,3 +144,10 @@ eval "$(starship init bash)"
# BEGIN_KITTY_SHELL_INTEGRATION # BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
# END_KITTY_SHELL_INTEGRATION # END_KITTY_SHELL_INTEGRATION
# Automatically added by the Guix install script.
if [ -n "$GUIX_ENVIRONMENT" ]; then
if [[ $PS1 =~ (.*)"\\$" ]]; then
PS1="${BASH_REMATCH[1]} [env]\\\$ "
fi
fi

3
.path
View File

@ -1,3 +0,0 @@
export PATH=${PATH}:/usr/local/go/bin:/home/fschl/go/bin
. "$HOME/.cargo/env"

View File

@ -48,6 +48,11 @@ RSA (NOT ECDSA or DSA).
$ ssh-copy-id -i ~/.ssh/<file>.pub -p 22 user@host $ ssh-copy-id -i ~/.ssh/<file>.pub -p 22 user@host
#+END_SRC #+END_SRC
*** SSH-Agent
automatically start agent, add keys to agent (after using it for the first time) when entering passphrase.
integrates with KeepassXC ([[https://github.com/keepassxreboot/keepassxc/blob/develop/docs/topics/SSHAgent.adoc][GH:KeePass > Docs > SSH-Agent]])
*** GnuPG *** GnuPG
- https://wiki.mozilla.org/Security/Key_Management - https://wiki.mozilla.org/Security/Key_Management
@ -151,13 +156,16 @@ RSA (NOT ECDSA or DSA).
libtool \ libtool \
network-manager-applet \ network-manager-applet \
notmuch \ notmuch \
papirus-icon-theme-dark \
papirus-icon-theme-light \
ripgrep \ ripgrep \
rustup \ rustup \
syncthing \ syncthing \
udiskie \ udiskie \
virt-manager \ virt-manager \
wireguard-tools \ wireguard-tools \
wofi wofi \
youtube-dl
rustup_init rustup_init
#+end_src #+end_src
@ -212,6 +220,8 @@ https://realpython.com/dependency-management-python-poetry/
*** Disk partitioning *** Disk partitioning
- https://github.com/david-cortes/snapper-in-debian-guide?tab=readme-ov-file
- https://wiki.archlinux.org/title/Snapper#Suggested_filesystem_layout
- https://reckoning.dev/blog/ubuntu-btrfs-guide/ - https://reckoning.dev/blog/ubuntu-btrfs-guide/
- https://wiki.systemcrafters.net/guix/nonguix-installation-guide/#partition-the-disks - https://wiki.systemcrafters.net/guix/nonguix-installation-guide/#partition-the-disks
- https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html - https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html