mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
3 Commits
e3e87ee465
...
b7aa432091
Author | SHA1 | Date | |
---|---|---|---|
b7aa432091 | |||
062b6c8a58 | |||
3adc1859c9 |
9
.gitmodules
vendored
9
.gitmodules
vendored
@ -1,9 +0,0 @@
|
|||||||
[submodule "oh-my-zsh/.oh-my-zsh/"]
|
|
||||||
path = oh-my-zsh/.oh-my-zsh
|
|
||||||
url = https://github.com/robbyrussell/oh-my-zsh.git
|
|
||||||
[submodule "i3/.config/i3/vendor/i3blocks"]
|
|
||||||
path = i3/.config/i3/vendor/i3blocks
|
|
||||||
url = https://github.com/Anachron/i3blocks.git
|
|
||||||
[submodule "i3/.config/i3/i3blocks"]
|
|
||||||
path = i3/.config/i3/i3blocks
|
|
||||||
url = https://github.com/alrayyes/i3blocks.git
|
|
29
README.org
29
README.org
@ -8,6 +8,10 @@
|
|||||||
- [[#maintainers][Maintainers]]
|
- [[#maintainers][Maintainers]]
|
||||||
- [[#prerequisites][Prerequisites]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[#applications][Applications]]
|
- [[#applications][Applications]]
|
||||||
|
- [[#zsh][Zsh]]
|
||||||
|
- [[#theme][Theme]]
|
||||||
|
- [[#plugin-manager][Plugin Manager]]
|
||||||
|
- [[#plugins][Plugins]]
|
||||||
- [[#configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#installation][Installation]]
|
- [[#installation][Installation]]
|
||||||
- [[#find--delete-orphaned-symlinks][Find & delete orphaned symlinks]]
|
- [[#find--delete-orphaned-symlinks][Find & delete orphaned symlinks]]
|
||||||
@ -38,14 +42,35 @@ A repository of my personal configuration files.
|
|||||||
- [[https://neomutt.org/][neomutt]]
|
- [[https://neomutt.org/][neomutt]]
|
||||||
- [[https://neovim.io/][neovim]]
|
- [[https://neovim.io/][neovim]]
|
||||||
- [[http://jonls.dk/redshift/][redshift]]
|
- [[http://jonls.dk/redshift/][redshift]]
|
||||||
- [[https://github.com/denysdovhan/spaceship-prompt][spaceship zsh]]
|
|
||||||
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
||||||
- [[https://tmux.github.io/][tmux]]
|
- [[https://tmux.github.io/][tmux]]
|
||||||
- [[https://vifm.info/][vifm]]
|
- [[https://vifm.info/][vifm]]
|
||||||
- [[https://weechat.org/][weechat]]
|
- [[https://weechat.org/][weechat]]
|
||||||
- [[https://github.com/freedesktop/xcompmgr][xcompmgr]]
|
- [[https://github.com/freedesktop/xcompmgr][xcompmgr]]
|
||||||
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
||||||
- [[https://www.zsh.org/][zsh]]
|
|
||||||
|
* Zsh
|
||||||
|
** Theme
|
||||||
|
- [[https://github.com/denysdovhan/spaceship-prompt][spaceship zsh]]
|
||||||
|
** Plugin Manager
|
||||||
|
- [[https://github.com/zplug/zplug][zplug]]
|
||||||
|
** Plugins
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/archlinux][archlinux]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/composer][composer]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker][docker]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose][docker-compose]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract][extract]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git][git]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitignore][gitignore]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/pass][pass]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/ripgrep][ripgrep]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/rsync][rsync]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/sudo][sudo]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/systemd][systemd]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux][tmux]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vi-mode][vi-mode]]
|
||||||
|
- [[https://github.com/zsh-users/zsh-autosuggestions][zsh-autosuggestions]]
|
||||||
|
- [[https://github.com/zsh-users/zsh-syntax-highlighting][zsh-syntax-highlighting]]
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** Installation
|
** Installation
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 5ff21efad72117377c7b6cabd850d6b2b01ee31a
|
|
57
zsh/.zshenv
57
zsh/.zshenv
@ -1,55 +1,16 @@
|
|||||||
|
path_if_exists() {
|
||||||
|
if [[ -d $1 ]]; then
|
||||||
|
export PATH="$1:$PATH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Stop tmux bitching about 256 colours
|
# Stop tmux bitching about 256 colours
|
||||||
TERM="xterm-256color"
|
TERM="xterm-256color"
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
|
||||||
ZSH="/home/alrayyes/.oh-my-zsh"
|
|
||||||
|
|
||||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
|
||||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
||||||
#ZSH_THEME="robbyrussell"
|
|
||||||
ZSH_THEME="spaceship"
|
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
|
||||||
# CASE_SENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
|
||||||
# sensitive completion must be off. _ and - will be interchangeable.
|
|
||||||
# HYPHEN_INSENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
|
||||||
# export UPDATE_ZSH_DAYS=13
|
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
|
||||||
# DISABLE_LS_COLORS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
|
||||||
# DISABLE_AUTO_TITLE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
|
||||||
# ENABLE_CORRECTION="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
||||||
# COMPLETION_WAITING_DOTS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to disable marking untracked files
|
|
||||||
# under VCS as dirty. This makes repository status check for large repositories
|
|
||||||
# much, much faster.
|
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
# HIST_STAMPS="mm/dd/yyyy"
|
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# PATH
|
# PATH
|
||||||
export PATH="$PATH:/home/alrayyes/.config/yarn/global/node_modules/.bin:/home/alrayyes/.local/bin:/home/alrayyes/.emacs.d/bin"
|
path_if_exists ~/.config/yarn/global/node_modules/.bin
|
||||||
|
path_if_exists ~/.local/bin
|
||||||
|
path_if_exists ~/.emacs.d/bin
|
||||||
|
|
||||||
# Set GPG TTY
|
# Set GPG TTY
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
|
62
zsh/.zshrc
62
zsh/.zshrc
@ -1,13 +1,48 @@
|
|||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
source_if_exists() {
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
if [[ -f $1 ]]; then
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
source $1
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
fi
|
||||||
#
|
}
|
||||||
# fzf & sudo must start after vi-mode for it to work properly
|
|
||||||
#
|
|
||||||
plugins=(aws archlinux bower common-aliases composer docker extract git git-flow gitignore httpie pass rsync symfony2 systemd tmux vi-mode fzf sudo yarn zsh-syntax-highlighting )
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
# Check if zplug is installed
|
||||||
|
if [[ ! -d ~/.zplug ]]; then
|
||||||
|
git clone https://github.com/b4b4r07/zplug ~/.zplug
|
||||||
|
fi
|
||||||
|
source ~/.zplug/init.zsh
|
||||||
|
|
||||||
|
# Spaceship theme
|
||||||
|
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
|
||||||
|
|
||||||
|
# Oh my zsh lugins
|
||||||
|
# sudo must start after vi-mode for it to work properly
|
||||||
|
zplug "plugins/archlinux", from:oh-my-zsh
|
||||||
|
zplug "plugins/composer", from:oh-my-zsh
|
||||||
|
zplug "plugins/docker", from:oh-my-zsh
|
||||||
|
zplug "plugins/docker-compose", from:oh-my-zsh
|
||||||
|
zplug "plugins/extract", from:oh-my-zsh
|
||||||
|
zplug "plugins/git", from:oh-my-zsh
|
||||||
|
zplug "plugins/gitignore", from:oh-my-zsh
|
||||||
|
zplug "plugins/pass", from:oh-my-zsh
|
||||||
|
zplug "plugins/ripgrep", from:oh-my-zsh
|
||||||
|
zplug "plugins/rsync", from:oh-my-zsh
|
||||||
|
zplug "plugins/systemd", from:oh-my-zsh
|
||||||
|
zplug "plugins/tmux", from:oh-my-zsh
|
||||||
|
zplug "plugins/vi-mode", from:oh-my-zsh
|
||||||
|
zplug "plugins/sudo", from:oh-my-zsh
|
||||||
|
zplug "plugins/yarn", from:oh-my-zsh
|
||||||
|
zplug "zsh-users/zsh-autosuggestions", from:github, defer:3
|
||||||
|
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
if ! zplug check --verbose; then
|
||||||
|
printf "Install zplug plugins? [y/N]: "
|
||||||
|
if read -q; then
|
||||||
|
echo
|
||||||
|
zplug install
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
zplug load
|
||||||
|
|
||||||
# vim alias
|
# vim alias
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
@ -32,11 +67,16 @@ lfcd () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bindkey -s '^o' 'lfcd\n'
|
bindkey -s '^o' 'lfcd\n'
|
||||||
|
|
||||||
# Set GPG TTY
|
# Set GPG TTY
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
|
|
||||||
# Refresh gpg-agent tty in case user switches into an X session
|
# Refresh gpg-agent tty in case user switches into an X session
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||||
|
|
||||||
neofetch
|
# Needed for broot
|
||||||
|
|
||||||
source /home/alrayyes/.config/broot/launcher/bash/br
|
source /home/alrayyes/.config/broot/launcher/bash/br
|
||||||
|
|
||||||
|
source_if_exists /usr/share/fzf/key-bindings.zsh
|
||||||
|
|
||||||
|
neofetch
|
||||||
|
Loading…
Reference in New Issue
Block a user