-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
71 lines (51 loc) · 1.64 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# ~/.bashrc
#
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# \033[1;36m \033[1;32m
# PS1='\033[1;34m \033[1;31m\033[0m \W \033[1;33m\033[0m'
# PS1='\W \033[1;31m \033[1;33m \033[0m'
# PS1='\W \033[1;31m \033[0m'
PS1='\W $ '
# PS1='$ '
# echo -e "\033[1;33m \033[1;32m \033[1;34m \033[1;31m \033[1;36m\n"
echo -e "You're Awesome :)\n"
alias c='clear'
alias clear='clear && echo -e "You'\''re Awesome :)\n"'
alias shut='shutdown now'
alias sx='startx'
alias vol='pamixer --get-volume'
alias bsconf='vim ~/.config/bspwm/bspwmrc'
alias sxconf='vim ~/.config/sxhkd/sxhkdrc'
alias bconf='vim ~/.bashrc'
alias cred='echo $(cat ~/Miscellaneous/key) | xclip -selection primary'
alias gl='git log'
alias gd='git diff'
alias gds='git diff --staged'
alias gs='git status'
alias ga='git add --all'
alias gc='git commit -m' $@
alias gp='cred && git push'
alias gr='git restore'
alias grs='git restore --staged'
alias gpr='git pull --rebase'
# cd + ls
cd() {
builtin cd $@
ls
}
alias update='backlight -i && sudo pacman -Syu && yay -a -Syu'
alias wifil='nmcli device wifi list'
alias wific='nmcli device wifi connect $@'
alias wifica='nmcli --ask device wifi connect $@'
alias pingdns='ping -c 4 1.1.1.1'
alias pingext='ping -c 4 archlinux.org'
alias hs='history | grep $@'
alias adb='/home/vishnu/Android/Sdk/platform-tools/adb'
alias battery='cat /sys/class/power_supply/BAT0/capacity'
. "$HOME/.cargo/env"
export KOTLIN_HOME=~/.local/share/JetBrains/IdeaIC2023.2/Kotlin/kotlinc
export PATH=$PATH:$KOTLIN_HOME/bin