Compare commits

...

7 Commits

Author SHA1 Message Date
2766c31b1c Merge ssh://gitea.cusack.cloud:222/acid/dotfiles 2023-05-29 11:30:42 +01:00
74f40e76f6 Autocomplete different colour 2023-05-29 11:29:36 +01:00
a701eb8699 chsh after shell update 2023-05-28 14:26:35 +01:00
626f9f32ed ascii prompt 2023-05-28 11:14:06 +01:00
acid
055e2c9c7a changed powerline prompt, fixed autocomplete install dir 2023-05-22 17:54:35 -04:00
92852f0180 Changed from fish to ZSH 2023-05-22 22:38:08 +01:00
be55089dd0 quality of life changes 2023-05-22 21:58:48 +01:00
5 changed files with 1821 additions and 1 deletions

View File

@@ -1,2 +1 @@
set -gx EDITOR vim
load_nvm

View File

@@ -0,0 +1,12 @@
#!/bin/bash
apt update
apt install zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k
git clone https://github.com/zsh-users/zsh-completions.git ~/.zsh/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
mkdir ~/.zsh/command-not-found/
curl --output ~/.zsh/command-not-found/command-not-found.plugin.zsh https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/command-not-found/command-not-found.plugin.zsh
ln ~/.config/zsh/.zshrc ~/.zshrc
chsh -s /usr/bin/zsh

1768
.config/zsh/.p10k.zsh Normal file

File diff suppressed because it is too large Load Diff

41
.config/zsh/.zshrc Normal file
View File

@@ -0,0 +1,41 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt autocd extendedglob
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/acid/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
fpath=(~/.zsh/zsh-completions/src $fpath)
source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
# Plugins
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/command-not-found/command-not-found.plugin.zsh
# Aliases
alias config-git="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $argv"
# Custom Config
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=6'