-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bash_profile.Linux
More file actions
27 lines (23 loc) · 828 Bytes
/
.bash_profile.Linux
File metadata and controls
27 lines (23 loc) · 828 Bytes
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
# Turn on advanced bash completion if the file exists (get it here: http://www.caliban.org/bash/index.shtml#completion)
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
alias free='free -lm'
alias ls='ls --color=auto'
alias apt='sudo apt -y'
alias service='sudo service'
# Started within a X-Server?
if [ `set | grep WINDOWID` ]; then
alias vim='vim'
alias open='xdg-open'
fi
# Gentoo only
_hasCmd emerge && (
alias emerge='emerge -vp'
alias unmerge='CONFIG_PROTECT="-*" CONFIG_PROTECT_MASK="-*" emerge -Cva --unmerge'
alias lsflaws='glsa-check -l affected'
alias fixflaws='sudo glsa-check -f affected'
unmask() { sudo sh -c "echo -e \"$1\t\t\t\t~x86\" >> /etc/portage/package.keywords"; }
# deprecated - use "euse -i" instead
#alias descuse='cat /usr/portage/profiles/use.desc | grep '
)