From 6cac27c6eb2de95967072b20f4fd44be424e4072 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 8 Jun 2024 06:40:02 -0500 Subject: [PATCH] update --- .bashrc | 36 ++++++++++++++++++++++++++++++++++++ .config/ohmyposh/config.toml | 12 +++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .bashrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..0cc515e --- /dev/null +++ b/.bashrc @@ -0,0 +1,36 @@ +# Path to your oh-my-zsh installation. +export ZSH="$HOME/.oh-my-zsh" +export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export POWERSHELL_TELEMETRY_OPTOUT=1 +export PROMPT_EOL_MARK='' +export FZF_DEFAULT_OPTS="--preview 'bat --color=always {}'" +export EDITOR='nvim' +export GEM_HOME="$HOME/gems" +export PATH="$HOME/.local/bin:$HOME/gems/bin:/usr/local/go/bin:$HOME/go/bin:/home/linuxbrew/.linuxbrew/bin:$PATH" +export GOBIN=~/go/bin +export BAT_THEME="Catppuccin Mocha" +export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=none,fg=white,bold" +#eval $(thefuck --alias) +# +alias tf=terraform +alias k=kubectl +alias ls='ls --color' +alias vim='nvim' +alias c='clear' +alias pwsh='pwsh -NoLogo' +alias pbpaste='xclip -selection clipboard -o' +alias ls='eza' +alias ll='eza -l' +alias tree='eza -T' +alias cat='bat' +alias network='nmtui' +alias docker='podman' +alias sudo='sudo ' + +eval "$(oh-my-posh init bash --config ~/.config/ohmyposh/config.toml)" + +if [[ -f "/opt/homebrew/bin/brew" ]] then + # If you're using macOS, you'll want this enabled + eval "$(/opt/homebrew/bin/brew shellenv)" +fi + diff --git a/.config/ohmyposh/config.toml b/.config/ohmyposh/config.toml index 430ac04..ca6ea21 100644 --- a/.config/ohmyposh/config.toml +++ b/.config/ohmyposh/config.toml @@ -40,11 +40,21 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}' style = 'plain' foreground = 'yellow' background = 'transparent' - template = '{{ .FormattedMs }}' + template = '{{ .FormattedMs }} ' [blocks.segments.properties] threshold = 5000 + [[blocks.segments]] + type = 'path' + style = 'plain' + background = 'transparent' + foreground = 'blue' + template = '{{ .Shell }}' + + [blocks.segments.properties] + style = 'full' + [[blocks]] type = 'prompt' alignment = 'left'