neue Dateien

This commit is contained in:
2025-12-25 10:41:43 +01:00
parent cd02d59d83
commit 59a85467c4
2 changed files with 198 additions and 0 deletions

84
.bashrc Normal file
View File

@@ -0,0 +1,84 @@
# __ __ _____
# / \ / \ / __ \
# / /\ \ / /\ \ | |__| | Manuel Prinz (MP)
# / / \ \/ / \ \ | ___/
# / / \__/ \ \| |
# /_/ \_\_|
#
# Beschreibung: .bashrc
# letzte Änderung: 21.06.2025
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
### Pfade ###
PATH="$HOME/.local/bin/:$PATH"
###### Aliase ######
# ls
#alias ls='ls --color=auto --group-directories-first'
#alias la='ls -lAh'
#alias ll='ls -lh'
#exa
alias ls='exa --color=always --group-directories-first --icons'
alias la='exa -a --color=always --group-directories-first --icons'
alias ll='exa -al --color=always --group-directories-first --icons'
# grep with colors
alias grep='grep --color=auto'
# confirmations
alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'
alias ln='ln -i'
# mkdir create parents
alias mkdir='mkdir -pv'
# pacman and yay
alias pacup='sudo pacman -Syu'
alias yayup='yay -Sua'
#alias yayup='yay -Sua --noconfirm'
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
# Doom Emacs
alias doomdoc='~/.config/emacs/bin/doom doctor'
alias doomsync='~/.config/emacs/bin/doom sync'
alias doomup='~/.config/emacs/bin/doom upgrade'
# Sonstiges
alias ip='ip -color'
alias nnn='nnn -d -e -H -r'
alias y='yazi'
alias yu='ya pkg upgrade'
###### Exports ######
export EDITOR=vim
export LC_COLLATE="C"
###### Prompt ######
#PS1='\w > '
PS1='\[\033[1;34m\]\w\[\033[0m\] \[\033[0;32m\]\[\033[0m\] '
#PS1="\e[1;34m\]\w\e[0m\] \e[0;32m\]\e[0m\] "
#PS1='\e[0;33m\]\u@\h\e[00m\] \e[1;34m\]\w\e[00m\] \e[0;32m\]\e[00m\] '
#PS1='\e[0;33m\]\u@\h\e[00m\] \e[1;34m\]\w\e[00m\] \e[0;32m\]\e[00m\] '
#PS1='\e[0;33m\]\u@\h\e[00m\] \e[1;34m\]\w\e[00m\] \e[0;32m\] \e[00m\] '
#PS1='[\u@\h \w] > '
###### ausführen bei Terminalstart ######
#powerline-daemon -q
#POWERLINE_BASH_CONTINUATION=1
#POWERLINE_BASH_SELECT=1
#. /usr/lib/python3.9/site-packages/powerline/bindings/bash/powerline.sh
#. /usr/share/powerline/bindings/bash/powerline.sh
eval "$(starship init bash)"
eval "$(zoxide init bash)"
source $HOME/.profile
neofetch

114
.config/starship.toml Normal file
View File

@@ -0,0 +1,114 @@
add_newline = true
format = """
$directory\
$git_branch\
$git_status\
$git_state\
$cmd_duration\
$character\
"""
[character]
error_symbol = "[ ](bold red)"
success_symbol = "[](bold green)"
vimcmd_symbol = "[](bold green)"
[cmd_duration]
format = "[took](red) [$duration]($style) "
min_time = 50
style = "fg:red"
[directory]
home_symbol = " "
read_only = "  "
style = "fg:blue italic bold"
[directory.substitutions]
"Bilder" = " "
"Dokumente" = " "
"Downloads" = " "
"Musik" = " "
"Nextcloud" = " "
".config" = " "
[aws]
symbol = " "
[buf]
symbol = " "
[c]
symbol = " "
[conda]
symbol = " "
[dart]
symbol = " "
[docker_context]
symbol = " "
[elixir]
symbol = " "
[elm]
symbol = " "
[git_branch]
symbol = " "
[golang]
symbol = " "
[haskell]
symbol = " "
[hg_branch]
symbol = " "
[java]
symbol = " "
[julia]
symbol = " "
[lua]
symbol = " "
[memory_usage]
symbol = " "
[meson]
symbol = "喝 "
[nim]
symbol = " "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
[package]
symbol = " "
[python]
symbol = " "
[rlang]
symbol = "ﳒ "
[ruby]
symbol = " "
[rust]
symbol = " "
[scala]
symbol = " "
[spack]
symbol = "🅢 "