-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
47 lines (38 loc) · 1.19 KB
/
.aliases
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
#!/usr/bin/env bash
# Determine OS for OS-specific aliases
# alias ctags="`brew --prefix`/bin/ctags"
alias update="source ~/.bash_profile"
alias dotfiles="pushd ~/developer/dotfiles/"
alias vimrc="vi ~/.vimrc"
alias py3="python3"
alias py2="python2.7"
# Easier navigation
alias ..="cd .."
# Allow aliases to be sudo'ed
alias sudo='sudo '
# Always enable colored `grep` output
alias grep='grep --color=auto'
# Print each PATH entry on a separate line
alias path='echo -e ${PATH//:/\\n}'
# vim-plug commands from command line
alias PlugInstall='vim +PlugInstall +qall'
alias PlugClean='vim +PlugClean +qall'
# # Mac-specific aliases
if [[ "$OSTYPE" == "darwin"* ]]; then
alias ls="ls -G"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
alias ls="ls --color=auto"
fi
# if [[ $OP_SYS = mac ]]; then
# # Proper C++ compilation
# alias g++='g++ --std=c++1z'
# elif [ $OP_SYS = ubuntu ] ; then
# alias g++='g++ --std=c++11'
# alias pbcopy='xsel --clipboard --input'
# alias pbpaste='xsel --clipboard --output'
# elif [ $OP_SYS = arch ] ; then
# alias guion='sudo systemctl start sddm.service'
# alias guioff='sudo systemctl stop sddm.service'
# else
# echo "WARNING::Unrecognized OS::`uname -a`"
# fi