-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
51 lines (38 loc) · 969 Bytes
/
.bash_aliases
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
49
50
51
# config setup
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ls='ls --color=auto'
alias mank='man -k'
# -S, --smart-case, Searches case insensitively if input pattern is all lowercase
# -M, --max-columns, Omit output lines above certain length
alias rg='rg -S -M1000'
if grep -qi microsoft /proc/version; then
# WSL
alias b='wslview'
else
# native Linux
alias b='xdg-open'
fi
export EDITOR=helix
alias hx='helix'
iso(){
date +"%Y-%m-%d %H:%M"
}
fcd() {
cd "$(fd -t d $1 | head -n1)"
}
source-venv() {
source ./.venv/bin/activate
}
# See `bash-complete-alias` on AUR
if [[ -r /usr/share/bash-complete-alias/complete_alias ]]; then
source /usr/share/bash-complete-alias/complete_alias
complete -F _complete_alias config
fi
# add idf.py and idf_tools.py to PATH
# https://aur.archlinux.org/packages/esp-idf
source-idf() {
source /opt/esp-idf/export.sh
}