initial config

This commit is contained in:
Adam Goldsmith 2015-04-25 23:00:03 -04:00
parent c98da90662
commit 978fd3f4ce
7 changed files with 125 additions and 115 deletions

3
.gitmodules vendored
View File

@ -16,3 +16,6 @@
[submodule "modules/prompt/functions/pure"]
path = modules/prompt/external/pure
url = https://github.com/sindresorhus/pure.git
[submodule "modules/prompt/external/fred"]
path = modules/prompt/external/fred
url = ssh://ag/srv/git/prezto-fred-prompt.git

1
modules/prompt/external/fred vendored Submodule

@ -0,0 +1 @@
Subproject commit 2661815216c138cddea6a867483b3de2ba62eaaf

View File

@ -0,0 +1 @@
../external/fred/prompt_fred_setup

View File

@ -8,6 +8,5 @@
# Print the message.
cat <<-EOF
Thank you. Come again!
-- Dr. Apu Nahasapeemapetilon
Good bye.
EOF

View File

@ -1,26 +1,9 @@
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'
#-*- mode: sh; -*-
## General
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
# Set the Zsh modules to load (man zshmodules).
# zstyle ':prezto:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
@ -32,17 +15,85 @@ zstyle ':prezto:load' pmodule \
'spectrum' \
'utility' \
'completion' \
'git'\
'tmux'\
'gpg'\
'command-not-found'\
'syntax-highlighting'\
'prompt'
#
# Editor
#
# Set the prompt theme to load.
zstyle ':prezto:module:prompt' theme 'fred'
## Editor
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'
zstyle ':prezto:module:editor' dot-expansion 'yes'
# Set the SSH identities to load into the agent.
zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
## Terminal
# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
#zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
#zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
## Tmux
# Auto start a session when Zsh is launched in a local terminal.
#zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
zstyle ':prezto:module:tmux:auto-start' remote 'yes'
# Integrate with iTerm2.
#zstyle ':prezto:module:tmux:iterm' integrate 'yes'
## Syntax Highlighting
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern'
# 'cursor'\
# 'root'
# Set syntax highlighting styles.
zstyle ':prezto:module:syntax-highlighting' styles \
'builtin' 'fg=yellow'\
'command' 'fg=yellow'\
'function' 'fg=yellow'
## Unused
#
# General
#
# Set case-sensitivity for completion, history lookup, etc.
#zstyle ':prezto:*:*' case-sensitive 'yes'
# Set the Zsh modules to load (man zshmodules).
#zstyle ':prezto:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
#zstyle ':prezto:load' zfunction 'zargs' 'zmv'
#
# Git
@ -71,87 +122,9 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
# Set the search globbing flags.
#zstyle ':prezto:module:history-substring-search' globbing-flags ''
#
# Pacman
#
# Set the Pacman frontend.
# zstyle ':prezto:module:pacman' frontend 'yaourt'
#
# Prompt
#
# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'sorin'
#
# Ruby
#
# Auto switch the Ruby version on directory change.
#zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
#
# Screen
#
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:screen:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:screen:auto-start' remote 'yes'
#
# SSH
#
# Set the SSH identities to load into the agent.
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
#
# Syntax Highlighting
#
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'cursor' \
# 'root'
#
# Set syntax highlighting styles.
# zstyle ':prezto:module:syntax-highlighting' styles \
# 'builtin' 'bg=blue' \
# 'command' 'bg=blue' \
# 'function' 'bg=blue'
#
# Terminal
#
# Auto set the tab and window titles.
# zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
#
# Tmux
#
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
# Integrate with iTerm2.
# zstyle ':prezto:module:tmux:iterm' integrate 'yes'

View File

@ -17,8 +17,8 @@ fi
# Editors
#
export EDITOR='nano'
export VISUAL='nano'
export EDITOR='emacsclient -t'
export VISUAL='emacsclient'
export PAGER='less'
#
@ -44,6 +44,7 @@ typeset -gU cdpath fpath mailpath path
# Set the list of directories that Zsh searches for programs.
path=(
/usr/local/{bin,sbin}
$HOME/.bin
$path
)
@ -72,3 +73,6 @@ if [[ ! -d "$TMPDIR" ]]; then
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi

View File

@ -1,13 +1,42 @@
#
#-*- mode: sh; -*-
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
source "$HOME/.zprofile"
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
# Package Management Aliases
if [ -f $HOME/.aliases.pkgman ]
then
source $HOME/.aliases.pkgman
fi
# Aliases
if [ -f $HOME/.aliases ]
then
source $HOME/.aliases
fi
# Various Options
unsetopt share_history
zstyle ':complpetion:*:functions' ignored-patterns '_*'
# Keybindings
bindkey ';5D' backward-word
bindkey ';5C' forward-word
#load fasd if it exists
hash fasd 2>/dev/null && eval "$(fasd --init auto)"
export ARDUINO_DIR="/usr/share/arduino"
export ARDMK_DIR="$HOME/Programs/Arduino-Makefile"
export STEAMAPPS="$HOME/.local/share/Steam/steamapps/common"
export SCHOOL="$HOME/Documents/Google Drive/Dublin2014-2015/"
export QT_STYLE_OVERRIDE=gtk
export ALTERNATE_EDITOR=""
TERMINAL=mate-terminal