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"] [submodule "modules/prompt/functions/pure"]
path = modules/prompt/external/pure path = modules/prompt/external/pure
url = https://github.com/sindresorhus/pure.git 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. # Print the message.
cat <<-EOF cat <<-EOF
Thank you. Come again! Good bye.
-- Dr. Apu Nahasapeemapetilon
EOF EOF

View File

@ -1,26 +1,9 @@
# #-*- mode: sh; -*-
# Sets Prezto options. ## General
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals). # Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes' 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). # Set the Prezto modules to load (browse modules).
# The order matters. # The order matters.
zstyle ':prezto:load' pmodule \ zstyle ':prezto:load' pmodule \
@ -32,126 +15,116 @@ zstyle ':prezto:load' pmodule \
'spectrum' \ 'spectrum' \
'utility' \ 'utility' \
'completion' \ 'completion' \
'git'\
'tmux'\
'gpg'\
'command-not-found'\
'syntax-highlighting'\
'prompt' 'prompt'
# # Set the prompt theme to load.
# Editor zstyle ':prezto:module:prompt' theme 'fred'
#
## Editor
# Set the key mapping style to 'emacs' or 'vi'. # Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs' zstyle ':prezto:module:editor' key-bindings 'emacs'
# Auto convert .... to ../.. # 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 # Git
# #
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'. # Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
# zstyle ':prezto:module:git:status:ignore' submodules 'all' #zstyle ':prezto:module:git:status:ignore' submodules 'all'
# #
# GNU Utility # GNU Utility
# #
# Set the command prefix on non-GNU systems. # Set the command prefix on non-GNU systems.
# zstyle ':prezto:module:gnu-utility' prefix 'g' #zstyle ':prezto:module:gnu-utility' prefix 'g'
# #
# History Substring Search # History Substring Search
# #
# Set the query found color. # Set the query found color.
# zstyle ':prezto:module:history-substring-search:color' found '' #zstyle ':prezto:module:history-substring-search:color' found ''
# Set the query not found color. # Set the query not found color.
# zstyle ':prezto:module:history-substring-search:color' not-found '' #zstyle ':prezto:module:history-substring-search:color' not-found ''
# Set the search globbing flags. # Set the search globbing flags.
# zstyle ':prezto:module:history-substring-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 # Ruby
# #
# Auto switch the Ruby version on directory change. # Auto switch the Ruby version on directory change.
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes' #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 # Editors
# #
export EDITOR='nano' export EDITOR='emacsclient -t'
export VISUAL='nano' export VISUAL='emacsclient'
export PAGER='less' export PAGER='less'
# #
@ -44,6 +44,7 @@ typeset -gU cdpath fpath mailpath path
# Set the list of directories that Zsh searches for programs. # Set the list of directories that Zsh searches for programs.
path=( path=(
/usr/local/{bin,sbin} /usr/local/{bin,sbin}
$HOME/.bin
$path $path
) )
@ -72,3 +73,6 @@ if [[ ! -d "$TMPDIR" ]]; then
fi fi
TMPPREFIX="${TMPDIR%/}/zsh" 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. # Executes commands at the start of an interactive session.
#
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
#
source "$HOME/.zprofile"
# Source Prezto. # Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi 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