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.

181 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. # antigen {{{ #
  80. source $ZSH/custom/antigen.zsh
  81. # antigen bundle last-working-dir
  82. antigen bundle pass
  83. antigen bundle hlissner/zsh-autopair
  84. antigen bundle zsh-users/zsh-autosuggestions
  85. antigen bundle softmoth/zsh-vim-mode
  86. antigen bundle desyncr/auto-ls
  87. antigen theme molovo/filthy
  88. antigen apply
  89. # }}} antigen #
  90. if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  91. exec startx
  92. fi
  93. # pywal {{{ #
  94. export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts:/opt/pycharm-2018.3.1/bin:${HOME}/linux-config/scripts/colors"
  95. (cat ~/.cache/wal/sequences &)
  96. # export pywal colors
  97. source ~/.cache/wal/colors.sh
  98. export COLOR7=$color7
  99. # }}} pywal #
  100. xset r rate 200 60
  101. # laptop specific {{{ #
  102. # keyboard delay/rate
  103. if [ "$(hostname)" = "x1-carbon" ];
  104. then
  105. xrandr --dpi 125
  106. xinput disable "ELAN Touchscreen"
  107. # enable horizontal scrolling
  108. synclient HorizTwoFingerScroll=1
  109. fi
  110. # }}} laptop specific #
  111. # # autoreload zsh aliases {{{ #
  112. # # File containing aliases;
  113. # ALIAS_FILE="$HOME/linux-config/aliases/zsh_aliases"
  114. # reload_aliases () {
  115. # # do nothing if there is no $ALIAS_FILE
  116. # [[ -e ALIAS_FILE ]] || return 1
  117. # # check if $ALIAS_FILE has been modified since last reload
  118. # # the modifier `(:A)` resolves any symbolic links
  119. # if [[ $LAST_ALIAS_RELOAD < $(stat -c %Y ${ALIAS_FILE}(:A)) ]]; then
  120. # # load aliases
  121. # source $ALIAS_FILE
  122. # # update date of last reload
  123. # LAST_ALIAS_RELOAD=$(date +%s)
  124. # fi
  125. # }
  126. # # make reload_aliases to be run before each prompt
  127. # autoload -Uz add-zsh-hook
  128. # add-zsh-hook precmd reload_aliases
  129. # # }}} autoreload zsh aliases #
  130. source /home/kevin/coding/spotify-lib-vis/src/api-keys.sh
  131. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  132. export GPG_TTY=$(tty)
  133. export PASSWORD_STORE_CLIP_TIME=120
  134. source /home/kevin/.key_aliases
  135. #exec fish