You are not logged in.
When I run
$ wd Do<TAB>
It says
$ wd Do [0]
(eval):1: _wd.sh: function definition file not found
(eval):1: _wd.sh: function definition file not found
(eval):1: _wd.sh: function definition file not found
$ wd [130]
zsh: command not found: wd
When I run
$ v vimrc [127]
zsh: command not found: f
But everything works fine if I start tmux before using this plugins.
Whats wrong?
My .zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/user1/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
export TERM_ITALICS=true
export EDITOR=vim
export TERMINAL="urxvtc -e"
# selection store for pass utility
export PASSWORD_STORE_X_SELECTION=primary
export ZSH_TMUX_AUTOSTART=true
export RANGER_LOAD_DEFAULT_RC=false
export CSCOPE_DB='/home/user1/.cscope/cscope.out'
export MANPAGER="vim -M +MANPAGER -"
autoload -Uz promptinit
promptinit
# Prompt
PROMPT='%F{green}%n%f@%F{blue}%m%f %F{yellow}%1~%f %# '
RPROMPT='[%F{yellow}%?%f]'
# Prompt theme system
#source /usr/share/zsh/functions/Prompts/prompt_bigfade_setup
# oh-my-zsh theme
export ZSH=/usr/share/oh-my-zsh
#ZSH_THEME="agnoster"
source ~/.zsh_theme.sh
source $ZSH/oh-my-zsh.sh
# dircolors
eval `dircolors ~/.dir_colors`
# If started in fbterm
if [ $TERM = "fbterm" ]; then
# #then turns on white
# echo -en "\e]P7ffffff"
clear #for background artifacting
eval `dircolors ~/.config/fbterm/dircolors.ansi-dark`
fi
plugins=(archlinux catimg common-aliases compleat dircycle dirhistory dirpersist fbterm encode64 fasd gpg-agent git git-extras git-flow-avh httpie history jsontools last-working-dir per-directory-history pyenv python rand-quote sprunge sudo systemd tig tmux wd)
# fasd aliases
# v, o, j aliases are used in /usr/share/oh-my-zsh/plugins/fasd/fasd.plugin.zsh
alias m='f -e mplayer'
alias v='f -t -e vim -b viminfo' # mimic v's behavior
# Autocompletion with an arrow-key driven interface
zstyle ':completion:*' menu select
# Autocompletion of command line switches for aliases
setopt COMPLETE_ALIASES
# Enable autocompletion of privileged environments in privileged commands
zstyle ':completion::complete:*' gain-privileges 1
# History search
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
alias ls='ls --color=auto --group-directories-first'
# Stop logging of repeated identical commands
export HISTCONTROL=ignoredups
# Ask before overwrite file with cp, mv, rm.
# Switch on by default with oh-my-zsh 'common-aliases' plugin
# Force overwrite all files: "yes|cp file1 file2 ... dest"
# Not overwrite: "no|cp file1 file2 ... dest"
#alias cp="cp -i"
# Midnight Commander force xterm mode
alias mc='mc -x'
# To disable Ctrl+z in terminal for program make a script with
# #!/bin/bash
# trap "" 20
# program_name
# Pygmentize (color) 'less' command
export LESS='-R'
export LESSOPEN='|~/.lessfilter %s'
# Bash functions
source ~/.bash_functions
source ~/.zsh_functions
Last edited by Kirill Bugaev (2019-03-23 11:20:48)
Offline
Here the bulk from /usr/share/oh-my-zsh/oh-my-zsh.sh
# Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins); do
if [ -f $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh
elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH/plugins/$plugin/$plugin.plugin.zsh
else
echo "Warning: plugin $plugin not found"
fi
done
If I add echo $plugins it shows empty string on terminal emulator start, but full list of plugins when I start tmux. Why?
Last edited by Kirill Bugaev (2019-03-23 11:07:44)
Offline
Dumb question, sorry. I should define $plugins variable in .zshrc before oh-my-zsh.sh sourcing.
Offline