zshrc/zprofile + profile específico de cada host
This commit is contained in:
parent
3173bb5c5a
commit
1bf8cf6b71
5 changed files with 72 additions and 6 deletions
9
.profile
Normal file → Executable file
9
.profile
Normal file → Executable file
|
@ -4,22 +4,19 @@
|
||||||
|
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
|
|
||||||
export MESA_LOADER_DRIVER_OVERRIDE=crocus
|
|
||||||
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
export PATH="$HOME/go/bin:$PATH"
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
# export PATH="$HOME/.local/share/theme.sh:$PATH"
|
|
||||||
|
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
|
||||||
|
|
||||||
export EDITOR=kak
|
export EDITOR=kak
|
||||||
|
|
||||||
export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
|
export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
|
||||||
export FZF_CTRL_T_COMMAND='rg -L --hidden --files'
|
export FZF_CTRL_T_COMMAND='rg -L --hidden --files'
|
||||||
|
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||||
|
|
||||||
export XKB_DEFAULT_LAYOUT=us #-nulo
|
export XKB_DEFAULT_LAYOUT=us
|
||||||
export XKB_DEFAULT_VARIANT=altgr-intl
|
export XKB_DEFAULT_VARIANT=altgr-intl
|
||||||
export XKB_DEFAULT_OPTIONS=caps:escape
|
export XKB_DEFAULT_OPTIONS=caps:escape
|
||||||
|
|
||||||
|
|
3
.profile.cauquenitx
Executable file
3
.profile.cauquenitx
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export REMOTE=true
|
4
.profile.x69
Executable file
4
.profile.x69
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export MESA_LOADER_DRIVER_OVERRIDE=crocus
|
||||||
|
|
8
.zprofile
Executable file
8
.zprofile
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
. ~/.profile
|
||||||
|
test ! "$REMOTE" \
|
||||||
|
&& test "$(tty)" = /dev/tty1 \
|
||||||
|
&& exec env \
|
||||||
|
XDG_CURRENT_DESKTOP=river \
|
||||||
|
XDG_SESSION_DESKTOP=river \
|
||||||
|
dbus-run-session river
|
||||||
|
. ~/.zshrc
|
54
.zshrc
Normal file
54
.zshrc
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
source ~/.profile
|
||||||
|
test -f "~/.profile.$(hostname)" && source "~/.profile.$(hostname)"
|
||||||
|
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=100000
|
||||||
|
SAVEHIST=100000
|
||||||
|
|
||||||
|
setopt autocd extendedglob notify
|
||||||
|
bindkey -e
|
||||||
|
bindkey "^[[1;5C" forward-word
|
||||||
|
bindkey "^[[1;5D" backward-word
|
||||||
|
|
||||||
|
zmodload zsh/complist
|
||||||
|
zstyle ':completion:*' menu yes select
|
||||||
|
|
||||||
|
zstyle ':completion:*' list-dirs-first yes
|
||||||
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
|
|
||||||
|
zstyle :compinstall filename ~/.zshrc
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
|
autoload -Uz zcalc
|
||||||
|
|
||||||
|
autoload -Uz vcs_info
|
||||||
|
zstyle ':vcs_info:*' actionformats \
|
||||||
|
'%F{4}[%F{2}%b%F{3}|%F{1}%a%F{4}]%f '
|
||||||
|
zstyle ':vcs_info:*' formats '%F{4}%b%f '
|
||||||
|
zstyle ':vcs_info:*' enable git
|
||||||
|
precmd () { vcs_info }
|
||||||
|
|
||||||
|
setopt promptsubst
|
||||||
|
PS1='%F{5}%3~ ${vcs_info_msg_0_}%f%# '
|
||||||
|
test "$REMOTE" && PS1='%n@%m '$PS1
|
||||||
|
|
||||||
|
alias ls='ls --color=always'
|
||||||
|
alias grep='grep --color=always'
|
||||||
|
|
||||||
|
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
|
||||||
|
alias ssh='TERM=xterm-256color ssh'
|
||||||
|
alias e="$EDITOR"
|
||||||
|
alias r="trash -r"
|
||||||
|
|
||||||
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
source ~/.config/zsh_bg_notify.zsh
|
||||||
|
source ~/.config/zsh_osc_7.zsh
|
||||||
|
|
||||||
|
if test ! "$REMOTE"; then
|
||||||
|
unset SSH_AGENT_PID
|
||||||
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
|
# Start if not started
|
||||||
|
gpg-agent --daemon 2>/dev/null
|
||||||
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in a new issue