summaryrefslogtreecommitdiff
path: root/.bashrc
blob: cb4776c7d58d9c2e4b9127a5d8b947f63f191754 (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
alias ip="ip --color=auto"
alias grep="grep --color=auto"
alias diff="diff --color=auto"
alias ls="ls -hN --color=auto --group-directories-first"
alias l="ls -l"
alias ll="ls -la"
alias f="fossil"
alias v="$EDITOR"
alias vv="$SUDO $EDITOR"
alias nt="$BROWSER --new-tab"
alias nw="$BROWSER --new-window"
alias cp="cp -iv"
alias mv="mv -iv"
alias rm="rm -vI"
alias be="v $MENULAUNCHER_DIR/bookmarks"
alias mkdir="mkdir -pv"
alias yt="yt-dlp --embed-metadata --embed-chapters --sponsorblock-remove sponsor -i"
alias yta="yt-dlp -f bestaudio -x --audio-format mp3 --sponsorblock-remove sponsor -i"

# Export 'SHELL' to child processes.  Programs such as 'screen'
# honor it and otherwise use /bin/sh.
export SHELL
export HISTSIZE=5000

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

# Setup eat integration
[ -n "$EAT_SHELL_INTEGRATION_DIR" ] &&   source "$EAT_SHELL_INTEGRATION_DIR/bash"

PS1='\u@\h \w $ '