Complete conversion to fish
This commit is contained in:
parent
58c8246cac
commit
7709fef79e
|
@ -1,3 +1,22 @@
|
||||||
|
# Start keychain
|
||||||
|
if [[ -e $HOME/.ssh/id_ed25519 ]]
|
||||||
|
then
|
||||||
|
command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask $HOME/.ssh/id_ed25519)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -e $HOME/.ssh/id_rsa ]]
|
||||||
|
then
|
||||||
|
command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask $HOME/.ssh/id_rsa)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set local paths
|
||||||
|
LOCAL_BIN="$HOME/.local/bin"
|
||||||
|
echo $PATH | grep -i "$LOCAL_BIN" - > /dev/null || export PATH=$PATH:$LOCAL_BIN
|
||||||
|
|
||||||
|
DOTFILES_BIN="$(dirname $(dirname $(readlink -f $0)))/bin"
|
||||||
|
echo $PATH | grep -i "$DOTFILES_BIN" - > /dev/null || export PATH=$PATH:$DOTFILES_BIN
|
||||||
|
|
||||||
|
# Set some useful aliases and functions
|
||||||
poetry_installed()
|
poetry_installed()
|
||||||
{
|
{
|
||||||
command -v poetry > /dev/null 2>&1 && return 0 || echo "Poetry not installed"
|
command -v poetry > /dev/null 2>&1 && return 0 || echo "Poetry not installed"
|
39
Makefile
39
Makefile
|
@ -1,27 +1,13 @@
|
||||||
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
|
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
|
||||||
FONT_DIR := $(HOME)/.local/share/fonts
|
|
||||||
ZSH_DIR := $(if $(ZSH), $(ZSH), $(HOME)/.oh-my-zsh)
|
|
||||||
SSH_DIR := $(HOME)/.ssh
|
SSH_DIR := $(HOME)/.ssh
|
||||||
|
|
||||||
ZSH_CUSTOM_DIR := $(if $(ZSH_CUSTOM), $(ZSH_CUSTOM), $(ZSH_DIR)/custom)
|
|
||||||
|
|
||||||
HOME_ITEMS := $(wildcard home/*)
|
|
||||||
HOME_TARGETS := $(HOME_ITEMS:home/%=$(HOME)/.%)
|
|
||||||
CONFIG_ITEMS := $(wildcard config/*)
|
CONFIG_ITEMS := $(wildcard config/*)
|
||||||
CONFIG_TARGETS := $(CONFIG_ITEMS:config/%=$(CONFIG_DIR)/%)
|
CONFIG_TARGETS := $(CONFIG_ITEMS:config/%=$(CONFIG_DIR)/%)
|
||||||
ZSH_ITEMS := $(wildcard ohmyzsh/*.zsh)
|
|
||||||
ZSH_TARGETS := $(ZSH_ITEMS:ohmyzsh/%.zsh=$(ZSH_CUSTOM_DIR)/%.zsh)
|
|
||||||
SSH_ITEMS := $(wildcard ssh/*)
|
SSH_ITEMS := $(wildcard ssh/*)
|
||||||
SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%)
|
SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%)
|
||||||
|
|
||||||
LAZY_REPO := https://github.com/folke/lazy.nvim.git
|
LAZY_REPO := https://github.com/folke/lazy.nvim.git
|
||||||
LAZY_DIR := $(HOME)/.local/share/nvim/lazy/lazy.nvim
|
LAZY_DIR := $(HOME)/.local/share/nvim/lazy/lazy.nvim
|
||||||
POWERLEVEL_REPO := https://github.com/romkatv/powerlevel10k.git
|
|
||||||
POWERLEVEL_DIR := $(ZSH_CUSTOM_DIR)/themes/powerlevel10k
|
|
||||||
ZSH_SYNTAX_REPO := https://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
||||||
ZSH_SYNTAX_DIR := $(ZSH_CUSTOM_DIR)/plugins/zsh-syntax-highlighting
|
|
||||||
TPM_REPO := https://github.com/tmux-plugins/tpm
|
|
||||||
TPM_DIR := $(HOME)/.tmux/plugins/tpm
|
|
||||||
|
|
||||||
.PHONY: all clean link unlink install uninstall pacman
|
.PHONY: all clean link unlink install uninstall pacman
|
||||||
|
|
||||||
|
@ -29,18 +15,16 @@ all: link install
|
||||||
|
|
||||||
clean: unlink uninstall
|
clean: unlink uninstall
|
||||||
|
|
||||||
link: $(HOME_TARGETS) $(CONFIG_TARGETS) $(SSH_TARGETS) $(HOME)/.ssh/sockets
|
link: $(HOME)/.profile $(CONFIG_TARGETS) $(SSH_TARGETS) $(HOME)/.ssh/sockets
|
||||||
|
|
||||||
unlink:
|
unlink:
|
||||||
for link in $(HOME_TARGETS); do rm "$$link"; done
|
|
||||||
for link in $(CONFIG_TARGETS); do rm "$$link"; done
|
for link in $(CONFIG_TARGETS); do rm "$$link"; done
|
||||||
for link in $(SSH_TARGETS); do rm "$$link"; done
|
for link in $(SSH_TARGETS); do rm "$$link"; done
|
||||||
rmdir $(HOME)/.ssh/sockets
|
rmdir $(HOME)/.ssh/sockets
|
||||||
|
|
||||||
install: $(ZSH_DIR) $(POWERLEVEL_DIR) $(ZSH_SYNTAX_DIR) $(ZSH_TARGETS) $(LAZY_DIR) $(TPM_DIR)
|
install: $(LAZY_DIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf $(ZSH_DIR)
|
|
||||||
rm -rf $(LAZY_DIR)
|
rm -rf $(LAZY_DIR)
|
||||||
|
|
||||||
pacman:
|
pacman:
|
||||||
|
@ -48,27 +32,16 @@ pacman:
|
||||||
pacman -T - < pkglist.txt ||\
|
pacman -T - < pkglist.txt ||\
|
||||||
sudo pacman --needed -S - < pkglist.txt
|
sudo pacman --needed -S - < pkglist.txt
|
||||||
|
|
||||||
$(HOME_TARGETS): $(HOME)/.%: home/%
|
|
||||||
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
||||||
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh
|
|
||||||
$(SSH_TARGETS): $(SSH_DIR)/%: ssh/%
|
$(SSH_TARGETS): $(SSH_DIR)/%: ssh/%
|
||||||
$(HOME_TARGETS) $(CONFIG_TARGETS) $(ZSH_TARGETS) $(SSH_TARGETS):
|
$(CONFIG_TARGETS) $(SSH_TARGETS):
|
||||||
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
|
$(HOME)/.profile: .profile
|
||||||
ln -s $(PWD)/$? $@
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
$(LAZY_DIR):
|
$(LAZY_DIR):
|
||||||
git clone --depth 1 $(LAZY_REPO) $@
|
git clone --depth 1 $(LAZY_REPO) $@
|
||||||
|
|
||||||
$(POWERLEVEL_DIR):
|
|
||||||
git clone --depth 1 $(POWERLEVEL_REPO) $@
|
|
||||||
|
|
||||||
$(ZSH_SYNTAX_DIR):
|
|
||||||
git clone --depth 1 $(ZSH_SYNTAX_REPO) $@
|
|
||||||
|
|
||||||
$(TPM_DIR):
|
|
||||||
git clone --depth 1 $(TPM_REPO) $@
|
|
||||||
|
|
||||||
$(ZSH_DIR):
|
|
||||||
sh -c "$$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
||||||
|
|
||||||
$(CONFIG_DIR) $(SSH_DIR) $(HOME)/.ssh/sockets:
|
$(CONFIG_DIR) $(SSH_DIR) $(HOME)/.ssh/sockets:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -g base-index 1
|
|
||||||
|
|
||||||
# List of plugins
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
||||||
set -g @plugin 'ofirgall/tmux-window-name'
|
|
||||||
set -g @plugin 'noscript/tmux-mighty-scroll'
|
|
||||||
set -g @plugin 'jabirali/tmux-tilish'
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
|
||||||
|
|
||||||
# Plugin options.
|
|
||||||
set -g @tilish-navigator 'on'
|
|
||||||
set -g @tilish-dmenu 'on'
|
|
||||||
set -g @tmux_window_name_use_tilde "True"
|
|
||||||
set -g @catppuccin_flavour 'macchiato'
|
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
|
|
@ -1,74 +0,0 @@
|
||||||
# Catppuccin Macchiato Theme (for zsh-syntax-highlighting)
|
|
||||||
#
|
|
||||||
# Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
|
|
||||||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
|
||||||
|
|
||||||
# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md
|
|
||||||
#
|
|
||||||
## General
|
|
||||||
### Diffs
|
|
||||||
### Markup
|
|
||||||
## Classes
|
|
||||||
## Comments
|
|
||||||
ZSH_HIGHLIGHT_STYLES[comment]='fg=#5b6078'
|
|
||||||
## Constants
|
|
||||||
## Entitites
|
|
||||||
## Functions/methods
|
|
||||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[function]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[command]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#a6da95,italic'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#f5a97f,italic'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#f5a97f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#f5a97f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#c6a0f6'
|
|
||||||
## Keywords
|
|
||||||
## Built ins
|
|
||||||
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#a6da95'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#a6da95'
|
|
||||||
## Punctuation
|
|
||||||
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#ed8796'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#ed8796'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#ed8796'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#ed8796'
|
|
||||||
## Serializable / Configuration Languages
|
|
||||||
## Storage
|
|
||||||
## Strings
|
|
||||||
ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#eed49f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#eed49f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#eed49f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#ee99a0'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#eed49f'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#ee99a0'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#eed49f'
|
|
||||||
## Variables
|
|
||||||
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#ee99a0'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[assign]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#cad3f5'
|
|
||||||
## No category relevant in spec
|
|
||||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#ee99a0'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[path]='fg=#cad3f5,underline'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#ed8796,underline'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cad3f5,underline'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#ed8796,underline'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[globbing]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#c6a0f6'
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?'
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?'
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?'
|
|
||||||
#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#ee99a0'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[redirection]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[arg0]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[default]='fg=#cad3f5'
|
|
||||||
ZSH_HIGHLIGHT_STYLES[cursor]='fg=#cad3f5'
|
|
|
@ -1,6 +0,0 @@
|
||||||
autoload -U bashcompinit
|
|
||||||
bashcompinit
|
|
||||||
command -v pipx > /dev/null && {
|
|
||||||
command -v register-python-argcomplete3 > /dev/null && eval "$(register-python-argcomplete3 pipx)"
|
|
||||||
command -v register-python-argcomplete > /dev/null && eval "$(register-python-argcomplete pipx)"
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
tmux-window-name() {
|
|
||||||
if [[ -n $TMUX ]]
|
|
||||||
then
|
|
||||||
($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
add-zsh-hook chpwd tmux-window-name
|
|
|
@ -1,7 +0,0 @@
|
||||||
# export PATH=$PATH:$HOME/.local/bin
|
|
||||||
|
|
||||||
LOCAL_BIN="$HOME/.local/bin"
|
|
||||||
echo $PATH | grep -i "$LOCAL_BIN" - > /dev/null || export PATH=$PATH:$LOCAL_BIN
|
|
||||||
|
|
||||||
DOTFILES_BIN="$(dirname $(dirname $(readlink -f $0)))/bin"
|
|
||||||
echo $PATH | grep -i "$DOTFILES_BIN" - > /dev/null || export PATH=$PATH:$DOTFILES_BIN
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
fish
|
||||||
fzf
|
fzf
|
||||||
neovim
|
neovim
|
||||||
npm
|
npm
|
||||||
|
@ -7,6 +8,6 @@ python-pynvim
|
||||||
python-virtualenv
|
python-virtualenv
|
||||||
ripgrep
|
ripgrep
|
||||||
rust
|
rust
|
||||||
|
starship
|
||||||
tree-sitter
|
tree-sitter
|
||||||
wezterm
|
wezterm
|
||||||
fish
|
|
||||||
|
|
Loading…
Reference in a new issue