summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-06-11 00:55:39 +0200
committeryushyin <yushyin@saga>2019-06-11 00:55:39 +0200
commit614eb79f5271b3c2a5f1c62e57dd8a5be161d76c (patch)
tree56a65b5de1bf6a1e3886d46d162250b4973e2588 /zsh
downloaddotfiles-igor-614eb79f5271b3c2a5f1c62e57dd8a5be161d76c.tar.gz
dotfiles-igor-614eb79f5271b3c2a5f1c62e57dd8a5be161d76c.tar.xz
first commit
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zprofile11
-rw-r--r--zsh/.zshrc57
2 files changed, 68 insertions, 0 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile
new file mode 100644
index 0000000..0d2a4e3
--- /dev/null
+++ b/zsh/.zprofile
@@ -0,0 +1,11 @@
+# exports
+EDITOR=vim
+VIMINIT='let $MYVIMRC="~/.config/vim/vimrc" | source $MYVIMRC'
+TEXMFHOME=~/.local/share/texlive
+TEXMFCONFIG=~/.config/texlive
+TEXMFVAR=~/.cache/texlive
+export EDITOR VIMINIT TASKRC TEXMFHOME TEXMFCONFIG TEXMFVAR
+
+eval "$(perl -I$HOME/.local/perl5/lib/perl5/ -Mlocal::lib=--deactivate-all,$HOME/.local/perl5)"
+
+[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
diff --git a/zsh/.zshrc b/zsh/.zshrc
new file mode 100644
index 0000000..75ba23e
--- /dev/null
+++ b/zsh/.zshrc
@@ -0,0 +1,57 @@
+# Input/Output
+setopt interactive_comments
+
+# Expansion and Globbing
+setopt extended_glob nomatch
+
+# Job Control
+unsetopt notify
+
+# History
+setopt append_history hist_ignore_dups hist_ignore_space
+HISTFILE=~/.cache/zsh/histfile
+HISTSIZE=1000
+SAVEHIST=100000
+
+# Zle
+setopt beep
+autoload -z edit-command-line
+zle -N edit-command-line
+
+# Keybinds
+bindkey -e
+bindkey \^U backward-kill-line
+bindkey \^X\^E edit-command-line
+
+# Changing Directories
+setopt auto_cd auto_pushd
+DIRSTACKSIZE=30
+
+# Completion
+setopt always_to_end list_ambiguous
+zstyle ':completion:*' menu select
+zstyle ':completion:*' use-perl on
+zstyle ':completion:*' use-cache on
+zstyle ':completion:*' cache-path $HOME/.cache/zsh/complcache
+zstyle ':completion:*:*:kill:*' command 'ps --forest -u$USER -o pid,%cpu,tty,cputime,cmd'
+zstyle :compinstall filename "$HOME/.config/zsh/.zshrc"
+autoload -Uz compinit
+compinit -d $HOME/.cache/zsh/zcompdump
+
+# Misc
+PATH=$PATH:~/.local/bin
+REPORTTIME=2
+PROMPT=": "
+RPROMPT="%1~"
+
+# Aliases
+alias _='sudo '
+alias g='git'
+alias hc='herbstclient'
+alias l='ls -l'
+alias ll='ls -la'
+alias p='pacman'
+alias sc='systemctl'
+alias aria2c="aria2c --conf-path=$HOME/.config/aria2/config"
+alias chat="ssh karif -t 'TERM=\"xterm\" /usr/bin/bash -l -c \"tmux attach -t weechat\"'"
+alias tmux='tmux -f ~/.config/tmux/tmux.conf'