-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.alias
31 lines (28 loc) · 919 Bytes
/
.alias
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
alias ls='ls --color=auto -F'
alias l='ls --color=auto -F -lh'
alias ll='ls --color=auto -F -lah'
alias grep='grep --color=auto'
alias root='root -l'
alias pwd='pwd -P'
alias sudo='sudo -E'
alias less='less -r'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../../'
alias .....='cd ../../../..'
alias dotsync='\cd ~/.dotfiles && git pull && git submodule init && git submodule update && \cd - &> /dev/null'
alias time='/usr/bin/time -v'
alias o='xdg-open'
if ! command -v ranger &> /dev/null; then
if [[ ! -f ~/.ranger/ranger.py ]]; then
printf "GNU ranger not found, install it? [y/N]: "; read ans
if [ "$ans" != "${ans#[Yy]}" ]; then
\git clone https://github.com/ranger/ranger.git ~/.ranger
alias ranger='~/.ranger/ranger.py'
fi
else
alias ranger='~/.ranger/ranger.py'
fi
fi
alias ra="ranger"
[ -f ~/.alias_bis ] && source ~/.alias_bis