LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2015, 12:32 AM   #1
like100ninjas
LQ Newbie
 
Registered: Apr 2015
Posts: 24

Rep: Reputation: Disabled
broke fpath in global zshrc


edit - nvm typeset shows it's not messed up. my prompt in zsh is spelling out the color tags for some reason and i assumed that was my problem
my issue is that my prompt is showing up as color tags wrapped around what's supposed to be there fully written out. any idea?

Last edited by like100ninjas; 04-25-2015 at 03:46 AM.
 
Old 04-25-2015, 03:43 AM   #2
like100ninjas
LQ Newbie
 
Registered: Apr 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
Code:
#------------------------------------#
# ZSH GLOBAL CONFIG - /etc/zsh/zshrc #
#------------------------------------#

# vi keybindings
bindkey -v

setopt   notify globdots correct pushdtohome cdablevars autolist
setopt   correctall autocd recexact longlistjobs
setopt   autoresume histignoredups pushdsilent noclobber
setopt   autopushd pushdminus extendedglob rcquotes mailwarning
unsetopt bgnice autoparamslash

# smaller stack and no core dumps
unlimit
limit stack 8192
limit core 0
limit -s
umask 022

# environment variables
export MAIL=/var/spool/mail/$USERNAME
MAILCHECK=300
HISTSIZE=300
DIRSTACKSIZE=20

# csh compatibility
setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" }  # csh compatibility
freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done }

# autoload zsh modules when referenced
zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -a zsh/zprof zprof

# aliases
alias mv='nocorrect mv'
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
alias j=jobs
alias h=history
alias ts=typeset
alias grep=egrep
alias ls='ls -GFha --color='always''

# help functionality
autoload -U run-help
autoload run-help-git
autoload run-help-svn
autoload run-help-svk
unalias run-help
alias help=run-help

# completion
autoload -U compinit
compinit -d ~/.zsh/.zcompdump

# list of completers to use
zstyle ':completion:*::::' completer _expand _complete _ignored _approximate

# allow one error for every three characters
zstyle -e ':completion:*:approximate:*' max-errors \
    'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
    
# insert all expansions for expand completer
zstyle ':completion:*:expand:*' tag-order all-expansions

# formatting and messages
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format 'Bdb'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''

# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

# offer indexes before parameters in subscripts
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters

# process lists, local web server details and host completion
zstyle '*' hosts $hosts

# ignore during completion (except after rm)
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
    '*?.old' '*?.pro'

# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'

# default prompts
autoload -U colors && colors
PROMPT='%(#.%{$fg_no_bold[red]%}%#.%{$fg_no_bold[green]%}%#) %{$reset_color%}'    
RPROMPT=' %{$fg_no_bold[blue]%}%~%{$reset_color%}'
edit: removing the autoload colors line and using %F{color} worked.

Last edited by like100ninjas; 04-25-2015 at 12:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot write more than 2GB to file in non-global zone - in global zone I can newbie_123 Solaris / OpenSolaris 2 10-02-2014 08:24 PM
Logging in as root to global and non global zone slufoot80 Solaris / OpenSolaris 1 04-04-2014 04:40 AM
LXer: OpenClinica Global Conference to Bring Together Global Community for Open Sourc LXer Syndicated Linux News 0 01-08-2010 11:50 AM
How to check the cpu utilization on all non global zones from Global Zone rajaniyer123 Solaris / OpenSolaris 3 10-09-2008 02:43 AM
How to share a ZFS file system between a global zone and a non global zone? crisostomo_enrico Solaris / OpenSolaris 7 11-28-2007 09:20 AM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration