-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bashrc
52 lines (52 loc) · 1.4 KB
/
.bashrc
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
52
# If not running interactively, don't do anything
case $- in *i*) ;; *) return;; esac
# bash completion
if [[ -f /etc/bash_completion ]]; then
/etc/bash_completion
fi
# history stuff
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=500
HISTFILESIZE=1000
HISTFILE=~/.local/history
# update the values of LINES and COLUMNS on window resize
shopt -s checkwinsize
# prompt
PS1='\033[1;31m\W/ \e[0m'
#PROMPT_COMMAND='echo -en "\033]0;[${PWD##*/}]\a"'
PROMPT_COMMAND='echo -en "\033]0;$(dirs)\a"'
# Path
export PATH=~/.local/bin:$PATH
# editor
export EDITOR="nvim"
# shorten long commands
alias ga='git add .'
alias gs='git status'
alias gc='git commit -m'
alias gp='git push'
alias g="cd ~/git"
alias autoremove='yay -Rsn $(yay -Qdtq)'
alias mpv="mpv --loop=inf"
alias img="\mpv --loop=inf --pause"
alias dio="gio tree"
alias rickroll="curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash"
# options for commands
alias ls="ls --color=yes --group-directories-first"
alias la="ls -A --color=yes --group-directories-first"
alias rm="rm -Ir"
# shorten name
function e() {
emacs $1 &
}
alias v="nvim"
alias py="python"
alias open="xdg-open"
# other
shopt -s autocd
# emsdk
export PATH=/usr/lib/emsdk:$PATH
export PATH=/usr/lib/emsdk/upstream/emscripten:$PATH
export PATH=/usr/lib/emsdk/node/14.18.2_64bit/bin:$PATH
export EMSDK=/usr/lib/emsdk
export EMSDK_NODE=/usr/lib/emsdk/node/14.18.2_64bit/bin/node