Update dotfiles/.local/share/chezmoi/dot_local/konsole/Default.profile, dotfiles/.local/share/chezmoi/.chezmoiexternal.toml, dotfiles/.local/share/chezmoi/private_dot_config/shell/profile, dotfiles/.local/share/chezmoi/dot_zshrc, dotfiles/.local/share/chezmoi/dot_bashrc
This commit is contained in:
parent
2f10543af2
commit
80c6462e6b
5 changed files with 74 additions and 49 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
### Shell
|
### Shell
|
||||||
[".config/shell/lscolors.sh"]
|
[".config/shell/lscolors.sh"]
|
||||||
type = "fil"
|
type = "file"
|
||||||
url = "https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/lscolors.sh"
|
url = "https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/lscolors.sh"
|
||||||
refreshPeriod = "{{ $refreshPeriod }}"
|
refreshPeriod = "{{ $refreshPeriod }}"
|
||||||
[".local/antigen.zsh"]
|
[".local/antigen.zsh"]
|
||||||
|
@ -36,6 +36,14 @@
|
||||||
type = "file"
|
type = "file"
|
||||||
url = "https://raw.githubusercontent.com/dandavison/delta/master/themes.gitconfig"
|
url = "https://raw.githubusercontent.com/dandavison/delta/master/themes.gitconfig"
|
||||||
refreshPeriod = "{{ $refreshPeriod }}"
|
refreshPeriod = "{{ $refreshPeriod }}"
|
||||||
|
[".local/share/zsh/site-functions/fzf.zsh"]
|
||||||
|
type = "file"
|
||||||
|
url = "https://raw.githubusercontent.com/junegunn/fzf/master/shell/completion.zsh"
|
||||||
|
refreshPeriod = "{{ $refreshPeriod }}"
|
||||||
|
[".local/share/zsh/site-functions/fzf-key-bindings.zsh"]
|
||||||
|
type = "file"
|
||||||
|
url = "https://raw.githubusercontent.com/junegunn/fzf/master/shell/key-bindings.zsh"
|
||||||
|
refreshPeriod = "{{ $refreshPeriod }}"
|
||||||
|
|
||||||
### Neovim
|
### Neovim
|
||||||
[".config/nvim"]
|
[".config/nvim"]
|
||||||
|
|
|
@ -48,12 +48,6 @@ if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Directory Colors (https://github.com/trapd00r/LS_COLORS)
|
|
||||||
command -v gdircolors > /dev/null 2>&1 || gdircolors() { dircolors "$@"; }
|
|
||||||
if command -v gdircolors > /dev/null && [ -f "$XDG_CONFIG_HOME/dircolors" ]; then
|
|
||||||
eval "$(gdircolors -b "$XDG_CONFIG_HOME/dircolors")"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# Minimal session
|
# Minimal session
|
||||||
if command -v oh-my-posh > /dev/null; then
|
if command -v oh-my-posh > /dev/null; then
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Appearance]
|
||||||
|
ColorScheme=Betelgeuse
|
||||||
|
|
||||||
|
[General]
|
||||||
|
Environment=TERM=xterm-256color,COLORTERM=truecolor
|
||||||
|
Name=Default
|
||||||
|
Parent=FALLBACK/
|
||||||
|
TerminalColumns=124
|
||||||
|
TerminalRows=35
|
||||||
|
|
||||||
|
[Scrolling]
|
||||||
|
HistoryMode=2
|
||||||
|
|
||||||
|
[Terminal Features]
|
||||||
|
UrlHintsModifiers=67108864
|
|
@ -7,8 +7,10 @@ export LC_ALL="en_US.UTF-8"
|
||||||
### Advanced Bash-features are supported
|
### Advanced Bash-features are supported
|
||||||
export BASH_SUPPORT=true
|
export BASH_SUPPORT=true
|
||||||
|
|
||||||
### ~/.profile
|
### Import Common Settings
|
||||||
[[ -f "$HOME/.profile" ]] && . "$HOME/.profile"
|
if [ -f "$HOME/.config/shell/profile" ]; then
|
||||||
|
. "$HOME/.config/shell/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
### Misc.
|
### Misc.
|
||||||
export HISTFILE="$XDG_STATE_HOME/zsh/history"
|
export HISTFILE="$XDG_STATE_HOME/zsh/history"
|
||||||
|
@ -31,7 +33,7 @@ fi
|
||||||
# --------------------------------- SETTINGS ----------------------------------
|
# --------------------------------- SETTINGS ----------------------------------
|
||||||
setopt AUTO_CD
|
setopt AUTO_CD
|
||||||
setopt BEEP
|
setopt BEEP
|
||||||
#setopt CORRECT
|
setopt CORRECT
|
||||||
setopt HIST_BEEP
|
setopt HIST_BEEP
|
||||||
setopt HIST_EXPIRE_DUPS_FIRST
|
setopt HIST_EXPIRE_DUPS_FIRST
|
||||||
setopt HIST_FIND_NO_DUPS
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
@ -242,12 +244,6 @@ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# https://github.com/trapd00r/LS_COLORS
|
|
||||||
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
|
|
||||||
if type gdircolors &> /dev/null && [ -f "$HOME/.config/dircolors" ]; then
|
|
||||||
eval "$(gdircolors -b "$HOME/.config/dircolors")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
### Antigen
|
### Antigen
|
||||||
if [ -f "$HOME/.local/antigen.zsh" ]; then
|
if [ -f "$HOME/.local/antigen.zsh" ]; then
|
||||||
source "$HOME/.local/antigen.zsh"
|
source "$HOME/.local/antigen.zsh"
|
||||||
|
@ -271,6 +267,7 @@ if command -v antigen > /dev/null; then
|
||||||
antigen bundle minikube
|
antigen bundle minikube
|
||||||
antigen bundle ng
|
antigen bundle ng
|
||||||
antigen bundle nomad
|
antigen bundle nomad
|
||||||
|
antigen bundle npm
|
||||||
antigen bundle redis-cli
|
antigen bundle redis-cli
|
||||||
antigen bundle ripgrep
|
antigen bundle ripgrep
|
||||||
# antigen bundle rust
|
# antigen bundle rust
|
||||||
|
@ -304,7 +301,6 @@ if command -v antigen > /dev/null; then
|
||||||
antigen bundle zsh-users/zsh-autosuggestions
|
antigen bundle zsh-users/zsh-autosuggestions
|
||||||
antigen bundle marlonrichert/zsh-autocomplete@main
|
antigen bundle marlonrichert/zsh-autocomplete@main
|
||||||
antigen theme romkatv/powerlevel10k
|
antigen theme romkatv/powerlevel10k
|
||||||
antigen bundle npm
|
|
||||||
antigen apply
|
antigen apply
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -325,8 +321,8 @@ if command -v direnv > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Java (asdf)
|
### Java (asdf)
|
||||||
if [ -f "$HOME/.local/asdf/plugins/java/set-java-home.zsh" ]; then
|
if [ -f "$ASDF_DATA_DIR/plugins/java/set-java-home.zsh" ]; then
|
||||||
# . "$HOME/.local/asdf/plugins/java/set-java-home.zsh"
|
# . "$ASDF_DATA_DIR/plugins/java/set-java-home.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### mcfly
|
### mcfly
|
||||||
|
@ -345,8 +341,8 @@ if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Powerline
|
### Powerline
|
||||||
if [ -f ~/.local/p10k.zsh ]; then
|
if [ -f "$HOME/.local/p10k.zsh" ]; then
|
||||||
source ~/.local/p10k.zsh
|
source "$HOME/.local/p10k.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Bash Completions
|
### Bash Completions
|
|
@ -11,6 +11,32 @@ if [ -f "$XDG_CONFIG_HOME/shell/functions" ]; then
|
||||||
. "$XDG_CONFIG_HOME/shell/functions"
|
. "$XDG_CONFIG_HOME/shell/functions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Colorize
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias diff='diff --color=auto'
|
||||||
|
alias ip='ip --color=auto'
|
||||||
|
alias pacman='pacman --color=auto'
|
||||||
|
|
||||||
|
### Aliases (better defaults for simple commands)
|
||||||
|
alias cp='cp -v'
|
||||||
|
alias rm='rm -I'
|
||||||
|
alias mv='mv -iv'
|
||||||
|
alias ln='ln -sriv'
|
||||||
|
alias xclip='xclip -selection c'
|
||||||
|
command -v vim > /dev/null && alias vi='vim'
|
||||||
|
|
||||||
|
### TOP - order based on preference of "top" application (last item will always be chosen if installed, e.g. glances)
|
||||||
|
command -v htop > /dev/null && alias top='htop'
|
||||||
|
command -v gotop > /dev/null && alias top='gotop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
||||||
|
command -v ytop > /dev/null && alias top='ytop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
||||||
|
command -v btm > /dev/null && alias top='btm $([ "$COLOR_SCHEME" = "light" ] && echo "--color default-light")'
|
||||||
|
# themes for light/dark color-schemes inside ~/.config/bashtop; Press ESC to open the menu and change the theme
|
||||||
|
command -v bashtop > /dev/null && alias top='bashtop'
|
||||||
|
command -v bpytop > /dev/null && alias top='bpytop'
|
||||||
|
command -v glances > /dev/null && alias top='glances'
|
||||||
|
|
||||||
### Bash / ZSH
|
### Bash / ZSH
|
||||||
if [ "$BASH_SUPPORT" = 'true' ]; then
|
if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
### OS Detection
|
### OS Detection
|
||||||
|
@ -78,35 +104,21 @@ if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Directory Colors
|
### Directory Colors
|
||||||
if [ -f "$]
|
if [ -f "$XDG_CONFIG_HOME/shell/lscolors.sh" ]; then
|
||||||
. "~/.local/share/lscolors.sh"
|
. "$XDG_CONFIG_HOME/shell/lscolors.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Colorize
|
### Directory Colors (https://github.com/trapd00r/LS_COLORS)
|
||||||
alias grep='grep --color=auto'
|
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
|
||||||
alias fgrep='fgrep --color=auto'
|
if type gdircolors &> /dev/null && [ -f "$XDG_CONFIG_HOME/dircolors" ]; then
|
||||||
alias egrep='egrep --color=auto'
|
eval "$(gdircolors -b "$XDG_CONFIG_HOME/dircolors")"
|
||||||
alias diff='diff --color=auto'
|
fi
|
||||||
alias ip='ip --color=auto'
|
|
||||||
alias pacman='pacman --color=auto'
|
|
||||||
|
|
||||||
### Aliases (better defaults for simple commands)
|
### MOTD
|
||||||
alias cp='cp -v'
|
if [ -f "$XDG_CONFIG_HOME/shell/motd" ]; then
|
||||||
alias rm='rm -I'
|
. "$XDG_CONFIG_HOME/shell/motd"
|
||||||
alias mv='mv -iv'
|
fi
|
||||||
alias ln='ln -sriv'
|
fi
|
||||||
alias xclip='xclip -selection c'
|
|
||||||
command -v vim > /dev/null && alias vi='vim'
|
|
||||||
|
|
||||||
### TOP - order based on preference of "top" application (last item will always be chosen if installed, e.g. glances)
|
|
||||||
command -v htop > /dev/null && alias top='htop'
|
|
||||||
command -v gotop > /dev/null && alias top='gotop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
|
||||||
command -v ytop > /dev/null && alias top='ytop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
|
||||||
command -v btm > /dev/null && alias top='btm $([ "$COLOR_SCHEME" = "light" ] && echo "--color default-light")'
|
|
||||||
# themes for light/dark color-schemes inside ~/.config/bashtop; Press ESC to open the menu and change the theme
|
|
||||||
command -v bashtop > /dev/null && alias top='bashtop'
|
|
||||||
command -v bpytop > /dev/null && alias top='bpytop'
|
|
||||||
command -v glances > /dev/null && alias top='glances'
|
|
||||||
|
|
||||||
### Cargo
|
### Cargo
|
||||||
if [ -f "$CARGO_HOME/env" ]; then
|
if [ -f "$CARGO_HOME/env" ]; then
|
Loading…
Reference in a new issue