blob: 6ff75bd1aaf617f02435a83880a23cdcba3cac33 (
plain)
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
43
44
45
46
47
48
|
alias vim='nvim'
alias mutt='neomutt'
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip --color=auto'
alias ls='ls --hyperlink=auto --color=auto'
alias mv='mv -iv'
alias cp='cp -riv'
alias rm='rm -ir'
alias mkdir='mkdir -vp'
alias less='less -x4RFsX'
alias config='/usr/bin/git --git-dir ~/.dotfiles/ --work-tree ~'
alias chkspeed='wget http://speedtest.tele2.net/1GB.zip -O /dev/null'
alias sd="cd ~ && cd \$(fd -t d --hidden | fzf)"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
# nicer highlighting
if [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ]; then
# ubuntu 12.10: sudo apt-get install source-highlight
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
elif [ -f "/usr/bin/src-hilite-lesspipe.sh" ]; then
# fedora 18: sudo yum install source-highlight
# gentoo: sudo emerge -a source-highlight
export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
fi
alias get_idf='. $HOME/esp/esp-idf/export.sh'
export MENUCONFIG_STYLE=monochrome
export IDF_ENABLE_CCACHE=1
export LINUX_GIT="$HOME/linux"
export VULNS_GIT="$HOME/vulns"
function fman() {
man -k . | fzf -q "$1" --prompt='man> ' --preview $'echo {} | tr -d \'()\' | awk \'{printf "%s ", $2} {print $1}\' | xargs -r man' | tr -d '()' | awk '{printf "%s ", $2} {print $1}' | xargs -r man
}
alias irc="tmux new-session -s 'IRC' -n 'gentoo' 'irssi -c gentoo' \; new-window -n 'suse' 'irssi -c suse' \; new-window -n 'oftc' 'irssi -c oftc' \; attach"
|