Compare commits

..

14 Commits

Author SHA1 Message Date
mkurz af82d2f36d Fixing Icons for other Nerd Fonts 2023-08-17 20:39:30 +02:00
mkurz 67a635ea5a hostname fix
language fg color
2023-08-14 21:45:27 +02:00
BlackNet Dev f84e3eb410 fix .config folder 2023-06-19 08:51:24 +02:00
BlackNet Dev 41c1a1efe1 hostname 2022-12-25 11:13:44 +01:00
BlackNet Dev 88a0ee8d3b Fix 2022-12-25 11:03:49 +01:00
BlackNet Dev 399c357c08 . 2022-12-24 16:34:10 +01:00
BlackNet Dev 33c9b4d511 . 2022-12-24 16:33:38 +01:00
BlackNet Dev dbdbc90252 zsh_theme removed 2022-12-24 16:30:08 +01:00
BlackNet Dev ca320def46 Fix path 2022-12-24 16:16:13 +01:00
BlackNet Dev 648420ce74 install starship 2022-12-24 16:12:06 +01:00
BlackNet Dev c59b9c3eb7 remove Powerlevel10k theme 2022-12-24 15:55:58 +01:00
BlackNet Dev 5cb662915d fixing folder detection 2022-12-24 14:56:57 +01:00
BlackNet Dev debd6b310a more improvements 2022-12-24 13:35:36 +01:00
mkurz 966a1fb5f5 „.DS_Store“ löschen 2022-12-24 12:09:14 +01:00
4 changed files with 227 additions and 61 deletions
Vendored
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -40,5 +40,5 @@ sudo dnf install curl git zsh -y
Installer script for ohmyzsh, starship theme and plugins (aliases) Installer script for ohmyzsh, starship theme and plugins (aliases)
``` ```
curl -s https://scm.i-blacknet.de/mkurz/starship-theme/raw/branch/master/install.sh | bash -s curl -s https://scm.i-blacknet.de/mkurz/starship-theme/raw/branch/main/install.sh | bash -s
``` ```
+27 -6
View File
@@ -1,26 +1,47 @@
#!/usr/bin/bash #!/usr/bin/bash
cd ~ cd ~
cp ~/.zshrc ~/.zshrc.bak
if [[ ! -f $(which starship 2>/dev/null) ]]; then
echo "Installing starship..."
sh -c "$(curl -fsSL https://starship.rs/install.sh)" ""
fi
# check if .config folder exists
if [ ! -d ~/.conig ]; then
mkdir ~/.config
fi
# check if oh my zsh installed # check if oh my zsh installed
if [ ! -d "~/.oh-my-zsh" ]; then if [ ! -d ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi fi
# remove Powerlevel10k zshrc integration (works only with my installation otherwise)
if [ $(sed -n '/^# Enable Powerlevel10k instant prompt/=' ~/.zshrc) ]; then
sed -i '1,6d' ~/.zshrc
fi
if [ -n $(sed -n '/source ~\/.p10k.zsh/=' ~/.zshrc) ]; then
sed -i -e '/# To customize prompt, run `p10k configure` or edit ~\/.p10k.zsh./d' ~/.zshrc
sed -i -e '/^\[\[ \! -f ~\/.p10k.zsh .*/d' ~/.zshrc
sed -i -e 's/^ZSH_THEME="powerlevel10k\/powerlevel10k"/#ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc
fi
# install starship theme & alias plugin # install starship theme & alias plugin
if [ ! -d "~/.oh-my-zsh/custom/plugins/rainbow-alias" ]; then if [ ! -d ~/.oh-my-zsh/custom/plugins/rainbow-alias ]; then
mkdir -p ~/.oh-my-zsh/custom/plugins/rainbow-alias/ mkdir -p ~/.oh-my-zsh/custom/plugins/rainbow-alias/
curl -o ~/.oh-my-zsh/custom/plugins/rainbow-alias/rainbow-alias.plugin.zsh https://scm.i-blacknet.de/mkurz/rainbow-zsh-theme/raw/branch/master/rainbow-alias.plugin.zsh curl -o ~/.oh-my-zsh/custom/plugins/rainbow-alias/rainbow-alias.plugin.zsh https://scm.i-blacknet.de/mkurz/rainbow-zsh-theme/raw/branch/master/rainbow-alias.plugin.zsh
fi fi
curl -o ~/.config/starship.toml https://scm.i-blacknet.de/mkurz/starship-theme/raw/branch/main/starship.toml curl -o ~/.config/starship.toml https://scm.i-blacknet.de/mkurz/starship-theme/raw/branch/main/starship.toml
# install needfull plugins # install needfull plugins
if [ ! -d "~/.oh-my-zsh/custom/plugins/zsh-autosuggestions" ]; then if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
fi fi
if [ ! -d "~/.oh-my-zsh/custom/plugins/zsh-history-substring-search" ]; then if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-history-substring-search ]; then
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
fi fi
if [ ! -d "~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" ]; then if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
fi fi
@@ -38,7 +59,7 @@ if [ -z $(sed -n '/zsh-syntax-highlighting/=' ~/.zshrc) ]; then
sed -i -e 's/\(^plugins=([^)]*\)/\1 zsh-syntax-highlighting/' ~/.zshrc sed -i -e 's/\(^plugins=([^)]*\)/\1 zsh-syntax-highlighting/' ~/.zshrc
fi fi
echo "eval "\""$(starship init zsh)"\"" >> ~/.zshrc echo -e '\neval "$(starship init zsh)"' >> ~/.zshrc
echo "Change Shell to zsh when you want!" echo "Change Shell to zsh when you want!"
echo "chsh -s $(which zsh)" echo "chsh -s $(which zsh)"
+197 -52
View File
@@ -36,7 +36,8 @@ $battery\
$line_break\ $line_break\
$character""" $character"""
# Disable the blank line at the start of the prompt scan_timeout = 30
command_timeout = 500
# add_newline = false # add_newline = false
[fill] [fill]
@@ -48,7 +49,7 @@ error_symbol = "[](red)"
vicmd_symbol = "[](green)" vicmd_symbol = "[](green)"
[username] [username]
show_always = false show_always = true
style_user = "fg:yellow bg:black" style_user = "fg:yellow bg:black"
style_root = "fg:#CE4B4E bg:black" style_root = "fg:#CE4B4E bg:black"
format = '[ $user ]($style)' format = '[ $user ]($style)'
@@ -57,7 +58,7 @@ format = '[ $user ]($style)'
ssh_only = true ssh_only = true
ssh_symbol = "" ssh_symbol = ""
format = "[@](fg:yellow bg:black)[$hostname](fg:yellow bg:black)[ $ssh_symbol ](fg:yellow bg:black)" format = "[@](fg:yellow bg:black)[$hostname](fg:yellow bg:black)[ $ssh_symbol ](fg:yellow bg:black)"
trim_at = ".companyname.com" trim_at = "."
disabled = false disabled = false
[os] [os]
@@ -79,7 +80,7 @@ FreeBSD = " "
Garuda = "﯑ " Garuda = "﯑ "
Gentoo = " " Gentoo = " "
HardenedBSD = "ﲊ " HardenedBSD = "ﲊ "
Illumos = " " Illumos = " "
Linux = " " Linux = " "
Macos = " " Macos = " "
Manjaro = " " Manjaro = " "
@@ -100,7 +101,7 @@ Solus = "ﴱ "
SUSE = " " SUSE = " "
Ubuntu = " " Ubuntu = " "
Unknown = " " Unknown = " "
Windows = " " Windows = " "
[directory] [directory]
style = "bg:#6D8DD1" style = "bg:#6D8DD1"
@@ -111,15 +112,15 @@ truncation_symbol = "…/"
truncate_to_repo = false truncate_to_repo = false
[directory.substitutions] [directory.substitutions]
"Important Documents" = " " "Important Documents" = "󰈙󱈸 "
"Documents" = " " "Documents" = "󰈙 "
"Downloads" = " " "Downloads" = " "
"Music" = " " "Music" = "󰝚 "
"Pictures" = " " "Pictures" = " "
"Development" = " " "Development" = " "
"Developer" = " " "Developer" = " "
"Dev" = " " "Dev" = " "
"~" = " ~" "~" = "󰋜 ~"
[docker_context] [docker_context]
symbol = " " symbol = " "
@@ -169,158 +170,302 @@ format = "[ ${ram_pct} $symbol ]($style)"
[time] [time]
disabled = false disabled = false
time_format = "%R" # Hour:Minute Format time_format = "%R" # Hour:Minute Format
format = '[](fg:white)[ $time ](fg:black bg:white)' format = '[](fg:white)[ $time ](fg:black bg:white)'
[battery] [battery]
full_symbol = ' ' full_symbol = '󰁹 '
charging_symbol = ' ' charging_symbol = '󱊥 '
discharging_symbol = ' ' discharging_symbol = '󱊣 '
unknown_symbol = ' ' unknown_symbol = '󱊢 '
empty_symbol = ' ' empty_symbol = '󰂎 '
format = '[](fg:white)[ $symbol$percentage ]($style)' format = '[](fg:white)[ $symbol$percentage ]($style)'
[[battery.display]] [[battery.display]]
threshold = 10 threshold = 10
style = 'bold red bg:white' style = 'bold red bg:black'
[[battery.display]] [[battery.display]]
threshold = 30 threshold = 30
style = 'bold yellow bg:white' style = 'bold yellow bg:black'
[[battery.display]] [[battery.display]]
threshold = 50 threshold = 50
style = 'bold purpel bg:white' style = 'bold purpel bg:black'
[[battery.display]] [[battery.display]]
threshold = 100 threshold = 100
style = 'bold green bg:white' style = 'bold green bg:black'
[aws] [aws]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[buf] [buf]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[c] [c]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:white bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[conda] [conda]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[kubernetes]
symbol = '☸ '
style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[dart] [dart]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['dart']
detect_files = [
'pubspec.yaml',
'pubspec.yml',
'pubspec.lock',
]
detect_folders = ['.dart_tool']
[elixir] [elixir]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[elm] [elm]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['elm']
detect_files = [
'elm.json',
'elm-package.json',
'.elm-version',
]
detect_folders = ['elm-stuff']
[golang] [golang]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['go']
detect_files = [
'go.mod',
'go.sum',
'glide.yaml',
'Gopkg.yml',
'Gopkg.lock',
'.go-version',
]
detect_folders = ['Godeps']
[guix_shell] [guix_shell]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[haskell] [haskell]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[haxe] [haxe]
symbol = "⌘ " symbol = "⌘ "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[hg_branch] [hg_branch]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[java] [java]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = [
'java',
'class',
'jar',
'gradle',
'clj',
'cljc',
]
detect_files = [
'pom.xml',
'build.gradle.kts',
'build.sbt',
'.java-version',
'deps.edn',
'project.clj',
'build.boot',
]
detect_folders = []
[julia] [julia]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['jl']
detect_files = [
'Project.toml',
'Manifest.toml',
]
detect_folders = []
[lua] [lua]
symbol = " " symbol = "󰢱 "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['lua']
detect_files = ['.lua-version']
detect_folders = ['lua']
[meson] [meson]
symbol = "喝 " symbol = "喝 "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[nim] [nim]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = [
'nim',
'nims',
'nimble',
]
detect_files = ['nim.cfg']
detect_folders = []
[nix_shell] [nix_shell]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[nodejs] [nodejs]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = [
'js',
'mjs',
'cjs',
'ts',
]
detect_files = [
'package.json',
'.node-version',
'.nvmrc',
]
detect_folders = ['node_modules']
[package] [package]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[perl]
symbol = " "
style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
disabled = true
detect_extensions = [
'pl',
'pm',
'pod',
]
detect_files = [
'Makefile.PL',
'Build.PL',
'cpanfile',
'cpanfile.snapshot',
'META.json',
'META.yml',
'.perl-version',
]
detect_folders = []
[php]
symbol = " "
style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
detect_extensions = ['php']
detect_files = [
'composer.json',
'.php-version',
]
detect_folders = []
[python] [python]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' pyenv_prefix = 'pyenv '
python_binary = [
'python',
'python3',
'python2',
]
format = '[ ${symbol} ${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
version_format = 'v${raw}'
detect_extensions = ['py']
detect_files = [
'requirements.txt',
'.python-version',
'pyproject.toml',
'Pipfile',
'tox.ini',
'setup.py',
'__init__.py',
]
detect_folders = []
[rlang] [rlang]
symbol = "ﳒ " symbol = "ﳒ "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[ruby] [ruby]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['rb']
detect_files = [
'Gemfile',
'.ruby-version',
]
detect_folders = []
[rust] [rust]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = ['rs']
detect_files = ['Cargo.toml']
detect_folders = []
[scala] [scala]
symbol = " " symbol = " "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
detect_extensions = [
'sbt',
'scala',
]
detect_files = [
'.scalaenv',
'.sbtenv',
'build.sbt',
]
detect_folders = ['.metals']
[spack] [spack]
symbol = "🅢 " symbol = "🅢 "
style = "bg:#FCA17D" style = "fg:black bg:#FCA17D"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'