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.

174 lines
5.1 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. source ~/linux-config/aliases/zsh_aliases
  76. # ZSH_THEME="bira"
  77. # ZSH_THEME="miloshadzic"
  78. # ZSH_THEME="agnoster"
  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. if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  89. exec startx
  90. fi
  91. # pywal
  92. export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts:/opt/pycharm-2018.3.1/bin:${HOME}/linux-config/scripts/colors"
  93. (cat ~/.cache/wal/sequences &)
  94. # export pywal colors
  95. source ~/.cache/wal/colors.sh
  96. export COLOR7=$color7
  97. xset r rate 200 60
  98. # laptop specific {{{ #
  99. # keyboard delay/rate
  100. if [ "$(hostname)" = "x1-carbon" ];
  101. then
  102. xrandr --dpi 125
  103. xinput disable "ELAN Touchscreen"
  104. # enable horizontal scrolling
  105. synclient HorizTwoFingerScroll=1
  106. fi
  107. # }}} laptop specific #
  108. # # autoreload zsh aliases {{{ #
  109. # # File containing aliases;
  110. # ALIAS_FILE="$HOME/linux-config/aliases/zsh_aliases"
  111. # reload_aliases () {
  112. # # do nothing if there is no $ALIAS_FILE
  113. # [[ -e ALIAS_FILE ]] || return 1
  114. # # check if $ALIAS_FILE has been modified since last reload
  115. # # the modifier `(:A)` resolves any symbolic links
  116. # if [[ $LAST_ALIAS_RELOAD < $(stat -c %Y ${ALIAS_FILE}(:A)) ]]; then
  117. # # load aliases
  118. # source $ALIAS_FILE
  119. # # update date of last reload
  120. # LAST_ALIAS_RELOAD=$(date +%s)
  121. # fi
  122. # }
  123. # # make reload_aliases to be run before each prompt
  124. # autoload -Uz add-zsh-hook
  125. # add-zsh-hook precmd reload_aliases
  126. # # }}} autoreload zsh aliases #
  127. source /home/kevin/.shortcuts
  128. source /home/kevin/coding/spotify-lib-vis/src/api-keys.sh
  129. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  130. # add-zsh-hook -Uz chpwd (){ ls -a; }
  131. export GPG_TTY=$(tty)
  132. export PASSWORD_STORE_CLIP_TIME=120