forked from sukalaper/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
45 lines (36 loc) · 1.2 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
# ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Nice username
PS1='\u@ThinkpadX270:\w\$ '
# Pywal
cat ~/.cache/wal/sequences >/dev/null
wal -R >/dev/null
# Used to remove output from " xrdb can't open display '' "
clear
# Auto completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# Completion Case-Insensitive in Bash
bind 'set completion-ignore-case on'
# Auto correct
shopt -s cdspell
# Some Alias
alias ls='exa --icons=always'
alias pcs='sudo pacman -S'
alias pcsyu='sudo pacman -Syu'
alias remove='sudo pacman -Rncs'
alias compile='time g++'
alias wtc='watch -n 5 -t -d ~/.local/bin/stat-bar.sh'
alias lampp='if ! sudo /opt/lampp/lampp status | grep "already running"; then sudo /opt/lampp/lampp start; fi'
alias lamppstop='if ! sudo /opt/lampp/lampp status | grep "already running"; then sudo /opt/lampp/lampp stop; fi'
alias copas='xclip -selection clipboard'
alias rel='source .bashrc'
# Easy manage ~/.config
CDPATH=$CDPATH:~/.config
export CDPATH