1+ # .bashrc
2+
3+ # Source global definitions
4+ if [ -f /etc/bashrc ]; then
5+ . /etc/bashrc
6+ fi
7+
8+ # User specific environment
9+ PATH="$HOME/.local/bin:$HOME/bin:$PATH"
10+ export PATH
11+
12+ # Uncomment the following line if you don't like systemctl's auto-paging feature:
13+ # export SYSTEMD_PAGER=
14+
15+ # User specific aliases and functions
16+
17+ ELECTRON_TRASH=gio
18+
19+ # system aliases
20+ alias pef="ps -ef"
21+ alias paux="ps aux"
22+ alias free="free -m"
23+ alias cls="clear"
24+
25+ # Shell History
26+ alias h='history | less'
27+
28+ # ls aliases
29+ alias la="ls -lAtr --color=auto"
30+
31+ # prog
32+ alias cdp="cd ~/Prog/puppet && ls -lAtr"
33+
34+ # dir specific aliases
35+ alias cd..="cd .."
36+ alias ..="cd .."
37+ alias ...="cd ../.."
38+ alias ....="cd ../../.."
39+ alias .....="cd ../../../.."
40+
41+ alias md="mkdir -p"
42+ alias rd="rmdir"
43+
44+ # dnf aliases
45+ alias dnfd="sudo dnf distrosync"
46+
47+ alias gitp="git pull"
48+ alias gits="git status"
49+ alias gitd="git diff"
50+ alias gitcb="git checkout -b $1"
51+ alias gitc="git checkout $1"
52+
53+ # Git finish
54+ # Eg. gf "commit message" branch-name
55+ gitf() {
56+ git add . && git commit -am "$1" && git push origin "$2"
57+ }
58+
59+ # Set config variables first
60+ GIT_PROMPT_ONLY_IN_REPO=1
61+
62+ # GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
63+ # GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules
64+ # GIT_PROMPT_WITH_VIRTUAL_ENV=0 # uncomment to avoid setting virtual environment infos for node/python/conda environments
65+
66+ # GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
67+ # GIT_PROMPT_SHOW_UNTRACKED_FILES=normal # can be no, normal or all; determines counting of untracked files
68+
69+ # GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files
70+
71+ # GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
72+
73+ # GIT_PROMPT_START=... # uncomment for custom prompt start sequence
74+ # GIT_PROMPT_END=... # uncomment for custom prompt end sequence
75+
76+ # as last entry source the gitprompt script
77+ # GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh)
78+ # GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh
79+ GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme
80+ source ~/.bash-git-prompt/gitprompt.sh
0 commit comments