.profile (1492B)
1 export PATH=~/.bin:~/.local/bin:$PATH 2 export LC_ALL=ru_RU.UTF-8 3 export LANG=ru_RU.UTF-8 4 export LANGUAGE=ru_RU.UTF-8 5 6 export NAME='Anton Konyahin' 7 export EMAIL='me@konyahin.xyz' 8 9 export EDITOR='nvi' 10 export ALTERNATE_EDITOR='emacs -nw' 11 export PAGER=less 12 export BROWSER=open 13 export PASSWORD_STORE_DIR="$HOME/data/pass" 14 15 alias z=zathura 16 alias e='$EDITOR' 17 alias em='$ALTERNATE_EDITOR' 18 alias v=nview 19 alias nb='newsboat && bookmark count' 20 alias m='mutt && isync' 21 alias isync='mbsync -c ~/.config/.mbsyncrc -a && mfilter ~/data/mail/fastmail' 22 alias l='ls -p -A' 23 alias lr='l -R' 24 25 alias evi='$EDITOR ~/.nexrc' 26 alias enb='$EDITOR ~/.newsboat/config' 27 alias enbu='$EDITOR ~/.newsboat/urls' 28 29 alias ef='$EDITOR $(find . | fzf)' 30 alias et='$EDITOR -t $(cat tags | awk "{print \$1}" | fzf)' 31 alias edot='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"' 32 33 alias gpush='git remote | xargs -n 1 git push' 34 35 fzf-in () { 36 found=$(find . -not -path "*.git*" | fzf) 37 [ -d "$found" ] && cd "$found" && return 38 [ -f "$found" ] && $EDITOR "$found" && return 39 } 40 alias /=fzf-in 41 alias //='cd ~/; /' 42 43 me () { 44 $EDITOR $(make 2>&1 | grep '^.*\.[ch]:' | fzf | awk -F: '{printf "-c %s %s\n", $2, $1}') 45 } 46 47 jp () { 48 projects=$(find ~/project/ -type d -maxdepth 1 -mindepth 1 ! -name konyahin) 49 personal=$(find ~/project/konyahin -type d -maxdepth 1 -mindepth 1) 50 selected=$(echo "$projects\n$personal" | fzf) 51 [ -n "$selected" ] && cd "$selected" 52 } 53 54 cheat () { 55 curl "cheat.sh/$1" | less -r 56 }