-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
56 lines (38 loc) · 927 Bytes
/
.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
#
# ~/.bashrc
#
### EXPORT ###
export EDITOR='neovim'
#PATH
export PATH=/home/nyrs/.config/emacs/bin:$PATH
export PATH=/home/nyrs/code/scripts:$PATH
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
### ALIASES ###
#list
alias ls='ls --color=auto'
alias la='ls -a'
#pacman
alias spu='sudo pacman -Syu'
alias sps='sudo pacman -S'
alias searpac='sudo pacman -Ss'
alias spr='sudo pacman -R'
alias sprs='sudo pacman -Rs'
#AUR
alias aur='paru -S'
#show dependencies
function_depends() {
search=$(echo "$1")
sudo pacman -Sii $search | grep "Required" | sed -e "s/Required By : //g" | sed -e "s/ /\n/g"
}
alias depends='function_depends'
#fix typo's
alias cd..='cd ..'
alias update='sudo pacman -Syu'
alias updqte='sudo pacman -Syu'
alias upate='sudo pacman -Syu'
alias updte='sudo pacman -Syu'
#fun
alias nf='neofetch'
alias grep='grep --color=auto'