-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_linux
More file actions
35 lines (28 loc) · 1.09 KB
/
bash_linux
File metadata and controls
35 lines (28 loc) · 1.09 KB
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
# -*- bash -*-
# shellcheck shell=bash
# ~/.bash_linux: Linux specific modifications and tweaks
[[ $- == *i* ]] || return 0
[[ "$(uname -s)" == "Linux" ]] || return 0
################################################################################
# Linux Environment Variables
################################################################################
################################################################################
# Linux Bash Completions
################################################################################
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
# shellcheck source=/dev/null
source /etc/bash_completion
fi
################################################################################
# Linux Aliases
################################################################################
# Enable colors for certain commands
if [ -x /usr/bin/dircolors ]; then
if [ -r "${HOME}/.dircolors" ]; then
eval "$(dircolors -b "${HOME}/.dircolors")"
else
eval "$(dircolors -b)"
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi