Files
dotfiles/zshrc
T
furtest 35ce58ea68 Remove dots when editing in vi mode
(I think it's what I did not sure)
2025-12-23 19:52:51 +01:00

85 lines
2.9 KiB
Bash

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded
ZSH_THEME="awesomepanda"
# Set list of themes to pick from when loading at random
ZSH_THEME_RANDOM_CANDIDATES=( "edvardm" "awesomepanda" )
# Uncomment the following line to disable auto-setting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
#COMPLETION_WAITING_DOTS="true"
plugins=(git
common-aliases
zsh-autosuggestions
sudo
colored-man-pages
zoxide
tmux
safe-paste
colorize
vi-mode
poetry
)
source $ZSH/oh-my-zsh.sh
# Written by hand :
if [ -f ~/.zsh_aliases ]; then
source ~/.zsh_aliases
fi
DEFAULT_USER=furtest
if whence "nvim" &> /dev/null;then
export EDITOR='nvim'
else
export EDITOR='vim'
fi
export WINEPREFIX=/home/furtest/applications/wine
export WINEARCH=win32
setxkbmap -option
setxkbmap -option ctrl:nocaps
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
# For vim keybindings in terminal
bindkey -v
#deno and rust to path
export DENO_INSTALL="/home/furtest/.deno"
export PATH="$PATH:$DENO_INSTALL/bin:/home/furtest/.cargo/bin"
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
# exec tmux new-session -A -s main
#fi
#Installed oh my zsh plugins + link to doc/explanation
#
#zsh-interactive-cd : better completition (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/zsh-interactive-cd) (use fzf)
#common-aliases : Add a lot of useful aliases (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/common-aliases)
#zsh-autosuggestions : Suggest from history (https://github.com/zsh-users/zsh-autosuggestions), stored in custom
#sudo : esc + esc add sudo at start of command (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/sudo)
#colored-man-pages : add colors to the man pages (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages)
#zoxide : smarter cd, remembers visited folder to go back faster (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/zoxide)
#tmux : add aliases for tmux (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux)
#safe-paste : stop code from being executed when pasted (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/safe-paste)
#colorize : Syntax highlighted cat (ccat) (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colorize)
#vi-mode : Improve terminal vi keybinding (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vi-mode)
# Created by `pipx` on 2024-09-29 10:10:31
export PATH="$PATH:/home/furtest/.local/bin"