v0.0.1
This commit is contained in:
5
files/gitconfig
Normal file
5
files/gitconfig
Normal file
@@ -0,0 +1,5 @@
|
||||
[user]
|
||||
email = eric@eom.dev
|
||||
name = eric o meehan
|
||||
[init]
|
||||
defaultBranch = main
|
||||
13
files/init.lua
Normal file
13
files/init.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
vim.cmd([[
|
||||
set nowrap
|
||||
set number
|
||||
set scrolloff=5
|
||||
set colorcolumn=128
|
||||
colorscheme elflord
|
||||
hi ColorColumn ctermbg=lightgrey guibg=lightgrey
|
||||
]])
|
||||
|
||||
vim.keymap.set('n', '<C-Up>', '<C-w><up>', { silent = true })
|
||||
vim.keymap.set('n', '<C-Down>', '<C-w><down>', { silent = true })
|
||||
vim.keymap.set('n', '<C-Left>', '<C-w><left>', { silent = true })
|
||||
vim.keymap.set('n', '<C-Right>', '<C-w><right>', { silent = true })
|
||||
50
files/prompt_eric_setup
Normal file
50
files/prompt_eric_setup
Normal file
@@ -0,0 +1,50 @@
|
||||
# Generic large colour fade-bar prompt theme from bashprompt
|
||||
# Created by James Manning <jmm@raleigh.ibm.com>
|
||||
# Changed by Spidey 08/06
|
||||
# Converted to zsh prompt theme by <adam@spiers.net>
|
||||
|
||||
prompt_bigfade_help () {
|
||||
cat <<EOH
|
||||
This prompt is color-scheme-able. You can invoke it thus:
|
||||
|
||||
prompt bigfade [<fade-bar> [<userhost> [<date> [<cwd>]]]]
|
||||
|
||||
where the parameters are the colors for the fade-bar, user@host text,
|
||||
date text, and current working directory respectively. The default
|
||||
colors are blue, white, white, and yellow. This theme works best with
|
||||
a dark background.
|
||||
|
||||
|
||||
Recommended fonts for this theme: either UTF-8, or nexus or vga or similar.
|
||||
If you don't have any of these, the 8-bit characters will probably look
|
||||
stupid.
|
||||
EOH
|
||||
}
|
||||
|
||||
prompt_bigfade_setup () {
|
||||
local fadebar=${1:-'cyan'}
|
||||
local userhost=${2:-'white'}
|
||||
local date=${3:-'white'}
|
||||
local cwd=${4:-'cyan'}
|
||||
|
||||
local -A schars
|
||||
autoload -Uz prompt_special_chars
|
||||
prompt_special_chars
|
||||
|
||||
PS1="%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$userhost}%K{$fadebar}%n@%m%b%k%f%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%b%f%k%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$date}%b%f%k %D{%a %b %d} %D{%I:%M:%S%P} %B%F{$cwd}%d$prompt_newline> "
|
||||
PS2="%B%F{$fadebar}>%b%f%k "
|
||||
|
||||
prompt_opts=(cr subst percent)
|
||||
}
|
||||
|
||||
prompt_bigfade_preview () {
|
||||
if (( ! $#* )); then
|
||||
prompt_preview_theme bigfade
|
||||
print
|
||||
prompt_preview_theme bigfade red white grey white
|
||||
else
|
||||
prompt_preview_theme bigfade "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_bigfade_setup "$@"
|
||||
6
files/tmux.conf
Normal file
6
files/tmux.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind '%' split-window -h -c "#{pane_current_path}"
|
||||
|
||||
set-option -g pane-active-border-style fg=black,bg=cyan
|
||||
|
||||
set-option -g status-style fg=black,bg=cyan
|
||||
43
files/zshrc
Normal file
43
files/zshrc
Normal file
@@ -0,0 +1,43 @@
|
||||
# Aliases
|
||||
alias ls='ls --color=auto'
|
||||
alias ll='ls -lah --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
export PS2='> '
|
||||
|
||||
# Keep 5000 lines of history within the shell and save it to ~/.zsh_history:
|
||||
HISTSIZE=5000
|
||||
SAVEHIST=5000
|
||||
HISTFILE=~/.zsh_history
|
||||
setopt histignorealldups sharehistory
|
||||
|
||||
# Set the prompt
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
prompt eric
|
||||
|
||||
# Use modern completion system
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# zplug - manage plugins
|
||||
source /usr/share/zplug/init.zsh
|
||||
zplug "plugins/git", from:oh-my-zsh
|
||||
zplug "plugins/sudo", from:oh-my-zsh
|
||||
zplug "plugins/command-not-found", from:oh-my-zsh
|
||||
zplug "zsh-users/zsh-syntax-highlighting"
|
||||
zplug "zsh-users/zsh-autosuggestions"
|
||||
zplug "zsh-users/zsh-history-substring-search"
|
||||
zplug "zsh-users/zsh-completions"
|
||||
|
||||
# zplug - install/load new plugins when zsh is started or reloaded
|
||||
if ! zplug check; then
|
||||
printf "Install? [y/N]: "
|
||||
if read -q; then
|
||||
echo; zplug install
|
||||
fi
|
||||
fi
|
||||
zplug load
|
||||
|
||||
if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ]; then
|
||||
exec tmux new-session -A -s ${USER} >/dev/null 2>&1
|
||||
fi
|
||||
Reference in New Issue
Block a user