Starship
This commit is contained in:
parent
646e08711a
commit
fa6d7d9cc6
2 changed files with 93 additions and 2 deletions
46
Config/zsh/.zshrc
Normal file
46
Config/zsh/.zshrc
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Prompt #
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
# Environmental Variables #
|
||||||
|
export TERM=xterm
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
# Syntax Highlighting
|
||||||
|
source '~/.config/zsh/Plugins/F-Sy-H/F-Sy-H.plugin.zsh'
|
||||||
|
|
||||||
|
# Auto Suggestions
|
||||||
|
source "~/.config/zsh/Plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
|
|
||||||
|
# Hisory Substring Search
|
||||||
|
source "~/.config/zsh/Plugins/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
||||||
|
|
||||||
|
# Options #
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
setopt appendhistory
|
||||||
|
|
||||||
|
# Keybindings #
|
||||||
|
|
||||||
|
# Bind Alt + Delete for forward deleting a word
|
||||||
|
bindkey -M emacs '^[[3;3~' kill-word
|
||||||
|
|
||||||
|
# Bind Delete to delete a letter to the right
|
||||||
|
bindkey "^[[3~" delete-char
|
||||||
|
|
||||||
|
# Ctrl binds
|
||||||
|
# Bind Ctrl + Delete to delete word to the right
|
||||||
|
bindkey '^[[3;5~' kill-word
|
||||||
|
|
||||||
|
# Bind Ctrl + Backspace to delete word to the left
|
||||||
|
bindkey '^H' backward-kill-word
|
||||||
|
|
||||||
|
# Bind Ctrl + Right Arrow to move to the next word
|
||||||
|
bindkey '^[[1;5C' forward-word
|
||||||
|
|
||||||
|
# Bind Ctrl + Left Arrow to move to the previous word
|
||||||
|
bindkey '^[[1;5D' backward-word
|
||||||
|
|
||||||
|
# Hisory Substring Search Options
|
||||||
|
bindkey '^[[A' history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
49
README.md
49
README.md
|
@ -1606,7 +1606,7 @@ Create directories.
|
||||||
```sh
|
```sh
|
||||||
mkdir -p .local/share/themes .config/labwc .Git/catppccin Desktop Backup Documents/PDF Documents/Emails Downloads Misc Music Pictures/Screenshots Videos/Movies
|
mkdir -p .local/share/themes .config/labwc .Git/catppccin Desktop Backup Documents/PDF Documents/Emails Downloads Misc Music Pictures/Screenshots Videos/Movies
|
||||||
```
|
```
|
||||||
Enter the `.Git` directory.
|
Enter the `.Git` directory. Remain in this directory from now on.
|
||||||
```sh
|
```sh
|
||||||
cd .Git
|
cd .Git
|
||||||
```
|
```
|
||||||
|
@ -1646,8 +1646,53 @@ Copy the config directory into `~/.config`.
|
||||||
```
|
```
|
||||||
cp Grandma/Config/foot/ ~/.config/
|
cp Grandma/Config/foot/ ~/.config/
|
||||||
```
|
```
|
||||||
|
*Credit* [Catppuccin](https://github.com/catppuccin/foot)
|
||||||
|
# Changing the Themes
|
||||||
|
Install the icon theme.
|
||||||
|
```
|
||||||
|
sudo xbps-install papirus-icon-theme
|
||||||
|
```
|
||||||
|
Copy the `gtk-3.0` config directory into `~/.config`.
|
||||||
|
```
|
||||||
|
cp Grandma/Config/gtk-3.0/ ~/.config/
|
||||||
|
```
|
||||||
|
# ZSH
|
||||||
|
Install ZSH.
|
||||||
|
```sh
|
||||||
|
sudo xbps-install -S zsh
|
||||||
|
```
|
||||||
|
Create a directory for plugins.
|
||||||
|
```sh
|
||||||
|
mkdir -p ~/.config/zsh/Plugins
|
||||||
|
```
|
||||||
|
Install Starship
|
||||||
|
```sh
|
||||||
|
sudo xbps-install starship
|
||||||
|
```
|
||||||
|
Clone the Git repo containing the starship config.
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/catppuccin/starship catppuccin/starship
|
||||||
|
```
|
||||||
|
Copy the starship config into `~/.config`.
|
||||||
|
```sh
|
||||||
|
cp catppuccin/starship/starship.toml ~/.config
|
||||||
|
```
|
||||||
|
Now change to the `Plugins` directory.
|
||||||
|
```sh
|
||||||
|
cd ~/.config/zsh/Plugins
|
||||||
|
```
|
||||||
|
Clone the plugins.
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/z-shell/F-Sy-H
|
||||||
|
git clone https://github.com/zsh-users/zsh-autosuggestions
|
||||||
|
git clone https://github.com/zsh-users/zsh-history-substring-search
|
||||||
|
```
|
||||||
|
Make ZSH the default shell
|
||||||
|
```sh
|
||||||
|
chsh -s /usr/bin/zsh
|
||||||
|
```
|
||||||
# Audio
|
# Audio
|
||||||
Install Pipewire.
|
Install Pipewire.
|
||||||
```sh
|
```sh
|
||||||
sudo xbps-install -S pipewire
|
sudo xbps-install -S pipewire
|
||||||
```
|
``
|
||||||
|
|
Loading…
Reference in a new issue