summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc166
1 files changed, 0 insertions, 166 deletions
diff --git a/.zshrc b/.zshrc
deleted file mode 100644
index 0261f35..0000000
--- a/.zshrc
+++ /dev/null
@@ -1,166 +0,0 @@
1cowsay $(fortune) | lolcat
2hostname=$(uname -n)
3
4export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin"
5
6# Path to your oh-my-zsh installation.
7export ZSH=$HOME/.oh-my-zsh
8
9ZSH_THEME="spaceship"
10SPACESHIP_CHAR_SYMBOL="δ"
11SPACESHIP_CHAR_SUFFIX=" "
12
13# Uncomment the following line to display red dots whilst waiting for completion.
14COMPLETION_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.
19DISABLE_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"
24HIST_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.
29plugins=(
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
41source $ZSH/oh-my-zsh.sh
42
43# User configuration
44
45# Preferred editor for local and remote sessions
46if [[ -n $SSH_CONNECTION ]]; then
47 export EDITOR='nvim'
48else
49 export EDITOR='nvim'
50fi
51
52# aliases
53alias v='nvim'
54alias nt='neomutt'
55alias bashrc='nvim ~/.zshrc && source ~/.zshrc'
56alias taskrc='nvim ~/.taskrc'
57alias conkyrc='nvim ~/.config/conky/conky.conf'
58alias rm='rm -i'
59alias cp='cp -i'
60alias mv='mv -i' # Interactive, don't fuck shit up
61alias free='free -m'
62alias df='df -h'
63alias mirrors='sudo pacman-mirrors -f 0 && sudo pacman -Syy'
64alias -g C='| xsel -b' # Copy to clipboard
65alias bc='bc -l'
66alias ledger="ledger -f ~/nextcloud/virtuals/ledger.ledger"
67alias report="report -f ~/nextcloud/virtuals/ledger.ledger"
68alias think='tickle +1d' #think it over
69alias lim='nvim /home/yigit/nextcloud/virtuals/ledger.ledger'
70alias maybe='task due:someday list'
71alias music='mpv --no-vid'
72alias s="du -hs * | sort -rh | head -5"
73alias b="buku --suggest --colors 'onlxm'"
74alias tp='trash-put'
75alias ls='exa'
76alias wim='nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki'
77alias ssh='TERM=xterm-256color ssh'
78alias torem='cd /home/yigit/nextcloud/virtuals/remind/'
79alias taw='task add +next +@work'
80alias tat='task add +next +@tablet pro:res.toread'
81alias tre='exa -l -T -L 2 --header --git-ignore -F -d -I node_modules'
82alias guno='git status -uno'
83alias bo='bukuopener'
84alias re='rem -gaad -@2'
85
86export MANPAGER="nvim +Man!"
87export GOPATH=$HOME/.local/share/go
88
89export GPG_TTY=$(tty)
90
91# Getting Things Done & Taskwarrior Related
92alias in='task add +in' # Alias for tasks with in tag (in tray)
93alias inc='task +in +PENDING count' # Reporting the number of in things
94
95# tickler file
96tickle () {
97 deadline=$1
98 shift
99 in +tickle wait:$deadline $@
100}
101alias 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
107function te {
108 cd $(mktemp -d /tmp/$1.XXXX)
109}
110
111n ()
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
140export NNN_BMS='w:~/nextcloud/personal_wiki;r:~/nextcloud/research;n:~/nextcloud;d:~/down'
141export NNN_COLORS="2136" # use a different color for each context
142export NNN_FCOLORS='c1e2272e006033f7c6d6abc4'
143export NNN_PLUG='d:dragdrop;f:fzcd;h:fzhist;o:fzopen;l:launch;y:x2sel'
144export NNN_TRASH=1
145
146[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
147export FZF_DEFAULT_OPTS="--height=40% --layout=reverse --info=inline --border"
148
149export WECHALLUSER="drocan"
150export WECHALLTOKEN="35624-0D38B-A2F16-A98B0-5963D-6DF19"
151
152ledgerrot() {
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
164export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library/
165export NLTK_DATA="$HOME/.local/share/nltk_data"
166eval "$(direnv hook zsh)"