diff options
| author | Yigit Sever | 2021-11-12 19:45:23 +0300 |
|---|---|---|
| committer | Yigit Sever | 2021-11-12 19:45:23 +0300 |
| commit | 93c14d91fb94bbd954da49a3cb03e87ee05f2dd7 (patch) | |
| tree | a741b683c2320e8aaf4fcab3d98b9a6880f79d17 | |
| parent | 6656ea83d612d27291d0fff9366974ba59406b52 (diff) | |
| download | dotfiles-93c14d91fb94bbd954da49a3cb03e87ee05f2dd7.tar.gz dotfiles-93c14d91fb94bbd954da49a3cb03e87ee05f2dd7.tar.bz2 dotfiles-93c14d91fb94bbd954da49a3cb03e87ee05f2dd7.zip | |
zsh: removed
| -rw-r--r-- | .zshrc | 166 |
1 files changed, 0 insertions, 166 deletions
| @@ -1,166 +0,0 @@ | |||
| 1 | cowsay $(fortune) | lolcat | ||
| 2 | hostname=$(uname -n) | ||
| 3 | |||
| 4 | export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin" | ||
| 5 | |||
| 6 | # Path to your oh-my-zsh installation. | ||
| 7 | export ZSH=$HOME/.oh-my-zsh | ||
| 8 | |||
| 9 | ZSH_THEME="spaceship" | ||
| 10 | SPACESHIP_CHAR_SYMBOL="δ" | ||
| 11 | SPACESHIP_CHAR_SUFFIX=" " | ||
| 12 | |||
| 13 | # Uncomment the following line to display red dots whilst waiting for completion. | ||
| 14 | COMPLETION_WAITING_DOTS="true" | ||
| 15 | |||
| 16 | # Uncomment the following line if you want to disable marking untracked files | ||
| 17 | # under VCS as dirty. This makes repository status check for large repositories | ||
| 18 | # much, much faster. | ||
| 19 | DISABLE_UNTRACKED_FILES_DIRTY="true" | ||
| 20 | |||
| 21 | # Uncomment the following line if you want to change the command execution time | ||
| 22 | # stamp shown in the history command output. | ||
| 23 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | ||
| 24 | HIST_STAMPS="yyy-mm-dd" | ||
| 25 | |||
| 26 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | ||
| 27 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | ||
| 28 | # Add wisely, as too many plugins slow down shell startup. | ||
| 29 | plugins=( | ||
| 30 | aws | ||
| 31 | colored-man-pages | ||
| 32 | git | ||
| 33 | gitignore | ||
| 34 | taskwarrior | ||
| 35 | tmux | ||
| 36 | z | ||
| 37 | zsh-autosuggestions | ||
| 38 | zsh-syntax-highlighting | ||
| 39 | ) | ||
| 40 | |||
| 41 | source $ZSH/oh-my-zsh.sh | ||
| 42 | |||
| 43 | # User configuration | ||
| 44 | |||
| 45 | # Preferred editor for local and remote sessions | ||
| 46 | if [[ -n $SSH_CONNECTION ]]; then | ||
| 47 | export EDITOR='nvim' | ||
| 48 | else | ||
| 49 | export EDITOR='nvim' | ||
| 50 | fi | ||
| 51 | |||
| 52 | # aliases | ||
| 53 | alias v='nvim' | ||
| 54 | alias nt='neomutt' | ||
| 55 | alias bashrc='nvim ~/.zshrc && source ~/.zshrc' | ||
| 56 | alias taskrc='nvim ~/.taskrc' | ||
| 57 | alias conkyrc='nvim ~/.config/conky/conky.conf' | ||
| 58 | alias rm='rm -i' | ||
| 59 | alias cp='cp -i' | ||
| 60 | alias mv='mv -i' # Interactive, don't fuck shit up | ||
| 61 | alias free='free -m' | ||
| 62 | alias df='df -h' | ||
| 63 | alias mirrors='sudo pacman-mirrors -f 0 && sudo pacman -Syy' | ||
| 64 | alias -g C='| xsel -b' # Copy to clipboard | ||
| 65 | alias bc='bc -l' | ||
| 66 | alias ledger="ledger -f ~/nextcloud/virtuals/ledger.ledger" | ||
| 67 | alias report="report -f ~/nextcloud/virtuals/ledger.ledger" | ||
| 68 | alias think='tickle +1d' #think it over | ||
| 69 | alias lim='nvim /home/yigit/nextcloud/virtuals/ledger.ledger' | ||
| 70 | alias maybe='task due:someday list' | ||
| 71 | alias music='mpv --no-vid' | ||
| 72 | alias s="du -hs * | sort -rh | head -5" | ||
| 73 | alias b="buku --suggest --colors 'onlxm'" | ||
| 74 | alias tp='trash-put' | ||
| 75 | alias ls='exa' | ||
| 76 | alias wim='nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki' | ||
| 77 | alias ssh='TERM=xterm-256color ssh' | ||
| 78 | alias torem='cd /home/yigit/nextcloud/virtuals/remind/' | ||
| 79 | alias taw='task add +next +@work' | ||
| 80 | alias tat='task add +next +@tablet pro:res.toread' | ||
| 81 | alias tre='exa -l -T -L 2 --header --git-ignore -F -d -I node_modules' | ||
| 82 | alias guno='git status -uno' | ||
| 83 | alias bo='bukuopener' | ||
| 84 | alias re='rem -gaad -@2' | ||
| 85 | |||
| 86 | export MANPAGER="nvim +Man!" | ||
| 87 | export GOPATH=$HOME/.local/share/go | ||
| 88 | |||
| 89 | export GPG_TTY=$(tty) | ||
| 90 | |||
| 91 | # Getting Things Done & Taskwarrior Related | ||
| 92 | alias in='task add +in' # Alias for tasks with in tag (in tray) | ||
| 93 | alias inc='task +in +PENDING count' # Reporting the number of in things | ||
| 94 | |||
| 95 | # tickler file | ||
| 96 | tickle () { | ||
| 97 | deadline=$1 | ||
| 98 | shift | ||
| 99 | in +tickle wait:$deadline $@ | ||
| 100 | } | ||
| 101 | alias tick=tickle | ||
| 102 | |||
| 103 | [ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh | ||
| 104 | [ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh | ||
| 105 | |||
| 106 | # https://lobste.rs/s/zpw6py/how_do_you_organize_your_home_directory | ||
| 107 | function te { | ||
| 108 | cd $(mktemp -d /tmp/$1.XXXX) | ||
| 109 | } | ||
| 110 | |||
| 111 | n () | ||
| 112 | { | ||
| 113 | # Block nesting of nnn in subshells | ||
| 114 | if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then | ||
| 115 | echo "nnn is already running" | ||
| 116 | return | ||
| 117 | fi | ||
| 118 | |||
| 119 | # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) | ||
| 120 | # To cd on quit only on ^G, remove the "export" as in: | ||
| 121 | # NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" | ||
| 122 | # NOTE: NNN_TMPFILE is fixed, should not be modified | ||
| 123 | NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" | ||
| 124 | export NNN_OPENER=nuke | ||
| 125 | |||
| 126 | # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn | ||
| 127 | # stty start undef | ||
| 128 | # stty stop undef | ||
| 129 | # stty lwrap undef | ||
| 130 | # stty lnext undef | ||
| 131 | |||
| 132 | nnn -c "$@" | ||
| 133 | |||
| 134 | if [ -f "$NNN_TMPFILE" ]; then | ||
| 135 | . "$NNN_TMPFILE" | ||
| 136 | rm -f "$NNN_TMPFILE" > /dev/null | ||
| 137 | fi | ||
| 138 | } | ||
| 139 | |||
| 140 | export NNN_BMS='w:~/nextcloud/personal_wiki;r:~/nextcloud/research;n:~/nextcloud;d:~/down' | ||
| 141 | export NNN_COLORS="2136" # use a different color for each context | ||
| 142 | export NNN_FCOLORS='c1e2272e006033f7c6d6abc4' | ||
| 143 | export NNN_PLUG='d:dragdrop;f:fzcd;h:fzhist;o:fzopen;l:launch;y:x2sel' | ||
| 144 | export NNN_TRASH=1 | ||
| 145 | |||
| 146 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | ||
| 147 | export FZF_DEFAULT_OPTS="--height=40% --layout=reverse --info=inline --border" | ||
| 148 | |||
| 149 | export WECHALLUSER="drocan" | ||
| 150 | export WECHALLTOKEN="35624-0D38B-A2F16-A98B0-5963D-6DF19" | ||
| 151 | |||
| 152 | ledgerrot() { | ||
| 153 | day=$(tail -n4 ~/nextcloud/virtuals/ledger.ledger | grep -Eo '[0-9]{4}-[0-9]{2}-[0-9]{2}') | ||
| 154 | d1=$(date -d "now" +%s) | ||
| 155 | d2=$(date -d "$day" +%s) | ||
| 156 | days=$(( (d1 - d2) / 86400 )) | ||
| 157 | if [ "$days" -eq "0" ]; then | ||
| 158 | echo "you good"; | ||
| 159 | else | ||
| 160 | echo "$days days"; | ||
| 161 | fi | ||
| 162 | } | ||
| 163 | |||
| 164 | export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library/ | ||
| 165 | export NLTK_DATA="$HOME/.local/share/nltk_data" | ||
| 166 | eval "$(direnv hook zsh)" | ||
