2020-04-15 11:15:10 +00:00
|
|
|
if [[ $DISPLAY ]]; then
|
|
|
|
# If not running interactively, do not do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
if which tmux >/dev/null 2>&1; then
|
|
|
|
# if no session is started, start a new session
|
|
|
|
test -z ${TMUX} && tmux
|
|
|
|
|
|
|
|
# when quitting tmux, try to attach
|
|
|
|
while test -z ${TMUX}; do
|
|
|
|
tmux attach || break
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2018-06-27 15:06:19 +00:00
|
|
|
# If you come from bash you might have to change your $PATH.
|
|
|
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
|
2018-06-27 14:05:11 +00:00
|
|
|
# Path to your oh-my-zsh installation.
|
2018-07-21 15:35:44 +00:00
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
2018-06-27 14:05:11 +00:00
|
|
|
|
2018-06-27 15:06:19 +00:00
|
|
|
# Set name of the theme to load. Optionally, if you set this to "random"
|
|
|
|
# it'll load a random theme each time that oh-my-zsh is loaded.
|
|
|
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
2018-06-27 14:05:11 +00:00
|
|
|
ZSH_THEME="cypher"
|
|
|
|
|
2018-06-27 15:06:19 +00:00
|
|
|
# Set list of themes to load
|
|
|
|
# Setting this variable when ZSH_THEME=random
|
|
|
|
# cause zsh load theme from this variable instead of
|
|
|
|
# looking in ~/.oh-my-zsh/themes/
|
|
|
|
# An empty array have no effect
|
|
|
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
|
|
|
|
2018-06-27 14:05:11 +00:00
|
|
|
# Uncomment the following line to use case-sensitive completion.
|
|
|
|
# CASE_SENSITIVE="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to use hyphen-insensitive completion. Case
|
|
|
|
# sensitive completion must be off. _ and - will be interchangeable.
|
|
|
|
# HYPHEN_INSENSITIVE="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to disable bi-weekly auto-update checks.
|
|
|
|
# DISABLE_AUTO_UPDATE="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to change how often to auto-update (in days).
|
|
|
|
# export UPDATE_ZSH_DAYS=13
|
|
|
|
|
|
|
|
# Uncomment the following line to disable colors in ls.
|
|
|
|
# DISABLE_LS_COLORS="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to disable auto-setting terminal title.
|
|
|
|
# DISABLE_AUTO_TITLE="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to enable command auto-correction.
|
|
|
|
# ENABLE_CORRECTION="true"
|
|
|
|
|
|
|
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
2018-06-27 15:06:19 +00:00
|
|
|
# COMPLETION_WAITING_DOTS="true"
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# Uncomment the following line if you want to disable marking untracked files
|
|
|
|
# under VCS as dirty. This makes repository status check for large repositories
|
|
|
|
# much, much faster.
|
|
|
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
|
|
|
|
# Uncomment the following line if you want to change the command execution time
|
|
|
|
# stamp shown in the history command output.
|
|
|
|
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
2018-06-27 15:06:19 +00:00
|
|
|
# HIST_STAMPS="mm/dd/yyyy"
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# Would you like to use another custom folder than $ZSH/custom?
|
|
|
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
|
|
|
|
|
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
|
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
|
|
# Add wisely, as too many plugins slow down shell startup.
|
2018-06-27 15:06:19 +00:00
|
|
|
plugins=(
|
2018-07-14 23:53:20 +00:00
|
|
|
beet
|
2018-06-27 15:06:19 +00:00
|
|
|
debian
|
|
|
|
git
|
2018-07-04 21:20:11 +00:00
|
|
|
gitignore
|
2018-07-05 09:57:54 +00:00
|
|
|
my_debian
|
|
|
|
my_helpers
|
2020-04-15 11:15:10 +00:00
|
|
|
pass
|
2018-06-27 15:06:19 +00:00
|
|
|
sudo
|
|
|
|
)
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# User configuration
|
|
|
|
|
2018-06-27 15:06:19 +00:00
|
|
|
# export MANPATH="/usr/local/man:$MANPATH"
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# You may need to manually set your language environment
|
2018-06-27 15:06:19 +00:00
|
|
|
export LANG=fr_FR.UTF-8
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# Preferred editor for local and remote sessions
|
|
|
|
# if [[ -n $SSH_CONNECTION ]]; then
|
|
|
|
# export EDITOR='vim'
|
|
|
|
# else
|
|
|
|
# export EDITOR='mvim'
|
|
|
|
# fi
|
|
|
|
|
|
|
|
# Compilation flags
|
|
|
|
# export ARCHFLAGS="-arch x86_64"
|
|
|
|
|
|
|
|
# ssh
|
2018-06-27 15:06:19 +00:00
|
|
|
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
|
|
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
|
|
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
|
|
|
# For a full list of active aliases, run `alias`.
|
|
|
|
#
|
2018-06-27 15:06:19 +00:00
|
|
|
# Example aliases
|
|
|
|
# alias zshconfig="mate ~/.zshrc"
|
|
|
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
2019-03-31 08:05:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
# >>> conda initialize >>>
|
|
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
|
|
__conda_setup="$('/home/jeff/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
eval "$__conda_setup"
|
|
|
|
else
|
|
|
|
if [ -f "/home/jeff/miniconda3/etc/profile.d/conda.sh" ]; then
|
|
|
|
. "/home/jeff/miniconda3/etc/profile.d/conda.sh"
|
|
|
|
else
|
|
|
|
export PATH="/home/jeff/miniconda3/bin:$PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
unset __conda_setup
|
|
|
|
# <<< conda initialize <<<
|
|
|
|
|
2020-04-15 11:15:10 +00:00
|
|
|
|
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|