summaryrefslogtreecommitdiff
path: root/home/bashrc
blob: f2495a855c8e6e515f0d0bfb011d37c560a2b2a1 (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
export SHELL

if [[ $- != *i* ]]
then
    # We are being invoked from a non-interactive shell.  If this
    # is an SSH session (as in "ssh host command"), source
    # /etc/profile so we get PATH and other essential variables.
    [[ -n "$SSH_CLIENT" ]] && source /etc/profile

    # Don't do anything else.
    return
fi

# Source the system-wide file.
[ -f /etc/bashrc ] && source /etc/bashrc

alias rm='rm -i'
alias grep="ugrep --exclude-dir=node-modules --exclude-dir=_build"
alias e="$EDITOR"
alias g="git"
alias grep="ugrep"
# alias steam="flatpak run com.valvesoftware.Steam"
alias logdate='date +"%Y-%m-%d"'

optimizeimg() {
	magick -strip -quality 85% $1 $2
}

refs() {
	recsel -q $1 ~/personal-db/refs.rec
}

cleartrail() {
	cat $1 | tr -d '\n'
}

alias a='pwd'

source /run/current-system/profile/etc/profile.d/nix.sh

eval "$(zoxide init posix --hook prompt)"

if [ "$(tty)" = "/dev/tty1" ]; then
	exec startx
fi