add zsh
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
# .zshrc
|
||||
|
||||
[[ -f "$HOME/.var/app/com.visualstudio.code/data/../bin/env" ]] && . "$HOME/.var/app/com.visualstudio.code/data/../bin/env"
|
||||
[[ -f "$HOME/.local/bin/env" ]] && . "$HOME/.local/bin/env"
|
||||
|
||||
export TIME_STYLE="long-iso"
|
||||
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
if [[ ":$PATH:" != *":${HOME}/.local/bin:"* ]]; then
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
# Konsole-specific (optional)
|
||||
export TERM=xterm-256color
|
||||
|
||||
# User specific aliases and functions
|
||||
if [[ -d ~/.zshrc.d ]]; then
|
||||
for rc in ~/.zshrc.d/*(N); do
|
||||
[[ -f "$rc" ]] && source "$rc"
|
||||
done
|
||||
fi
|
||||
unset rc
|
||||
|
||||
# >>> grok installer >>>
|
||||
export PATH="$HOME/.grok/bin:$PATH"
|
||||
fpath=("$HOME/.grok/completions/zsh" $fpath)
|
||||
# <<< grok installer <<<
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ -o interactive ]] || return
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/alias.bash
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/apt.bash
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/fonts.bash
|
||||
@@ -0,0 +1,14 @@
|
||||
# Git + colorful prompt
|
||||
autoload -Uz vcs_info
|
||||
precmd_vcs_info() { vcs_info }
|
||||
precmd_functions+=(precmd_vcs_info)
|
||||
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
zstyle ':vcs_info:git:*' formats ' (%b%u%c)'
|
||||
zstyle ':vcs_info:git:*' actionformats ' (%b%u%c)'
|
||||
zstyle ':vcs_info:git:*' stagedstr ' +'
|
||||
zstyle ':vcs_info:git:*' unstagedstr ' *'
|
||||
|
||||
setopt prompt_subst
|
||||
PROMPT='%B%F{38;5;46m}%n@%m%b%f %F{38;5;51m}%~%f%F{90m}${vcs_info_msg_0_}%f $ '
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/mango.bash
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/ruff.bash
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/vscode.bash
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../bash/.bashrc.d/wsl.bash
|
||||
Reference in New Issue
Block a user