Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
5.0 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # default {{{ #
  2. HISTFILE=~/.histfile
  3. HISTSIZE=10000
  4. SAVEHIST=10000
  5. setopt appendhistory autocd extendedglob nomatch notify
  6. # If you come from bash you might have to change your $PATH.
  7. # Path to your oh-my-zsh installation.
  8. export ZSH=/home/kevin/.oh-my-zsh
  9. export EDITOR=/usr/bin/nvim export VISUAL=/usr/bin/nvim # 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
  10. # Set list of themes to load
  11. # Setting this variable when ZSH_THEME=random
  12. # cause zsh load theme from this variable instead of
  13. # looking in ~/.oh-my-zsh/themes/
  14. # An empty array have no effect
  15. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  16. # Uncomment the following line to use case-sensitive completion.
  17. # CASE_SENSITIVE="true"
  18. # Uncomment the following line to use hyphen-insensitive completion. Case
  19. # sensitive completion must be off. _ and - will be interchangeable.
  20. # HYPHEN_INSENSITIVE="true"
  21. # Uncomment the following line to disable bi-weekly auto-update checks.
  22. # DISABLE_AUTO_UPDATE="true"
  23. # Uncomment the following line to change how often to auto-update (in days).
  24. # export UPDATE_ZSH_DAYS=13
  25. # Uncomment the following line to disable colors in ls.
  26. # DISABLE_LS_COLORS="true"
  27. # Uncomment the following line to disable auto-setting terminal title.
  28. # DISABLE_AUTO_TITLE="true"
  29. # Uncomment the following line to enable command auto-correction.
  30. ENABLE_CORRECTION="true"
  31. # Uncomment the following line to display red dots whilst waiting for completion.
  32. COMPLETION_WAITING_DOTS="true"
  33. # Uncomment the following line if you want to disable marking untracked files
  34. # under VCS as dirty. This makes repository status check for large repositories
  35. # much, much faster.
  36. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  37. # Uncomment the following line if you want to change the command execution time
  38. # stamp shown in the history command output.
  39. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  40. # HIST_STAMPS="mm/dd/yyyy"
  41. # Would you like to use another custom folder than $ZSH/custom?
  42. # ZSH_CUSTOM=/path/to/new-custom-folder
  43. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  44. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  45. # Example format: plugins=(rails git textmate ruby lighthouse)
  46. # Add wisely, as too many plugins slow down shell startup.
  47. plugins=(
  48. git
  49. )
  50. # export MANPATH="/usr/local/man:$MANPATH"
  51. # You may need to manually set your language environment
  52. # export LANG="en_US.UTF-8"
  53. # export LC_MESSAGES="en_US.UTF-8"
  54. # export LC_ALL="en_US.UTF-8"
  55. # Preferred editor for local and remote sessions
  56. # if [[ -n $SSH_CONNECTION ]]; then
  57. # export EDITOR='vim'
  58. # else
  59. # export EDITOR='mvim'
  60. # fi
  61. # Compilation flags
  62. # export ARCHFLAGS="-arch x86_64"
  63. # ssh
  64. # export SSH_KEY_PATH="~/.ssh/rsa_id"
  65. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  66. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  67. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  68. # For a full list of active aliases, run `alias`.
  69. #
  70. # Example aliases
  71. # alias zshconfig="mate ~/.zshrc"
  72. # alias ohmyzsh="mate ~/.oh-my-zsh"
  73. # }}} default #
  74. source $ZSH/oh-my-zsh.sh
  75. # ZSH_THEME="bira"
  76. # ZSH_THEME="miloshadzic"
  77. # ZSH_THEME="agnoster"
  78. # antigen {{{ #
  79. source $ZSH/custom/antigen.zsh
  80. # antigen bundle last-working-dir
  81. antigen bundle pass
  82. antigen bundle hlissner/zsh-autopair
  83. antigen bundle zsh-users/zsh-autosuggestions
  84. antigen bundle softmoth/zsh-vim-mode
  85. antigen bundle desyncr/auto-ls
  86. antigen theme molovo/filthy
  87. antigen apply
  88. # }}} antigen #
  89. if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  90. exec startx
  91. fi
  92. # pywal {{{ #
  93. export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts:/opt/pycharm-2018.3.1/bin:${HOME}/linux-config/scripts/colors"
  94. (cat ~/.cache/wal/sequences &)
  95. # export pywal colors
  96. source ~/.cache/wal/colors.sh
  97. export COLOR7=$color7
  98. # }}} pywal #
  99. xset r rate 200 60
  100. # laptop specific {{{ #
  101. # keyboard delay/rate
  102. if [ "$(hostname)" = "x1-carbon" ];
  103. then
  104. xrandr --dpi 125
  105. xinput disable "ELAN Touchscreen"
  106. # enable horizontal scrolling
  107. synclient HorizTwoFingerScroll=1
  108. fi
  109. # }}} laptop specific #
  110. # # autoreload zsh aliases {{{ #
  111. # # File containing aliases;
  112. # ALIAS_FILE="$HOME/linux-config/aliases/zsh_aliases"
  113. # reload_aliases () {
  114. # # do nothing if there is no $ALIAS_FILE
  115. # [[ -e ALIAS_FILE ]] || return 1
  116. # # check if $ALIAS_FILE has been modified since last reload
  117. # # the modifier `(:A)` resolves any symbolic links
  118. # if [[ $LAST_ALIAS_RELOAD < $(stat -c %Y ${ALIAS_FILE}(:A)) ]]; then
  119. # # load aliases
  120. # source $ALIAS_FILE
  121. # # update date of last reload
  122. # LAST_ALIAS_RELOAD=$(date +%s)
  123. # fi
  124. # }
  125. # # make reload_aliases to be run before each prompt
  126. # autoload -Uz add-zsh-hook
  127. # add-zsh-hook precmd reload_aliases
  128. # # }}} autoreload zsh aliases #
  129. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  130. export GPG_TTY=$(tty)
  131. export PASSWORD_STORE_CLIP_TIME=120
  132. #exec fish
  133. source /home/kevin/aliases/.key_aliases