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.

161 lines
4.5 KiB

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