-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.extend.bashrc
More file actions
65 lines (62 loc) · 2.18 KB
/
Copy path.extend.bashrc
File metadata and controls
65 lines (62 loc) · 2.18 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# ~/.extend.bashrc
#
# I use this file as the main shell configuration.
# This file is sourced in every .*bash*|.*profile* file to have the same aliases and variables
# available in every shell.
#
# Example usage:
# [[ -f ~/.extend.bashrc ]] && . ~/.extend.bashrc
#
# This is included in all the shell files, for example
# ~/.bashrc
# ~/.bash_profile
# ~/.profile
# ~/.zshrc
# ...
#
#####################################################################################
### Shell aliases
#####################################################################################
alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F -h -a'
alias cd..='cd ..' # fix stupid typo
alias mirrors='sudo pacman-mirrors -f 25' # Update pacman mirrorslist with 15 fastest mirrors
# Git
alias gd='git diff'
alias gdc='git diff --cached'
alias gf='git fetch --prune'
alias gps='git push'
alias ga='git add'
alias gc='git commit --verbose'
alias grc='git rebase --continue'
# docker
alias dc='docker compose'
alias dcu='docker compose up'
alias dcud='docker compose up -d'
alias dcd='docker compose down'
alias ds='docker stop $(docker ps -aq) && docker rm $(docker ps -aq)'
#####################################################################################
### ENV Variables
#####################################################################################
export BAT_PAGER=""
# default editor
export EDITOR=/usr/bin/vim
# $PATH adjustments for various programming language environments
export PATH="$PATH:$HOME/.cargo/bin"
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
# fix "xdg-open fork-bomb" export your preferred browser from here
export BROWSER=/usr/bin/google-chrome-stable
# FZF: use rg to search
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git/*"'
# History
HISTFILE=~/.bash_history
HISTFILESIZE=25000
HISTSIZE=25000
#####################################################################################
### Misc
#####################################################################################
xhost +local:root > /dev/null 2>&1
# Prevent the terminal from catching CTRL+s and CTRL+q
stty -ixon
# disable beep
xset b off