-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
43 lines (33 loc) · 1.07 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
set -o vi
source $HOME/.env
alias sudo="sudo "
# https://askubuntu.com/a/22043
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Aliases
alias e="vim \`fzf\`"
alias stl="systemctl"
alias jtl="journalctl"
alias info='info --vi-keys'
alias ls="ls -p"
alias dk=docker
alias grep="grep --color=auto"
alias zth=zathura
alias pyg=pygmentize
alias news=newsboat
alias ircf='irc -s irc.freenode.net'
alias t="tree"
alias t2="tree -L 2"
alias t3="tree -L 3"
alias diary="$EDITOR $HOME/docs/diary/$(date --date='-6 hours' +%F).txt"
alias lstypes='ls | rev | cut -d. -f1 | rev | sort | uniq -c | sort -nr'
alias b=bitcoin-cli
alias br='bitcoin-cli -regtest'
alias gi=git
j() { cd $(find ${1:-.} -type d | fzf); }
gitCmd=gi ## default is "git". Useful for aliases
source /usr/share/git/completion/git-completion.bash
complete -o bashdefault -o default -o nospace -F _git $gitCmd 2>/dev/null \
|| complete -o default -o nospace -F _git $gitCmd
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"