-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_bashrc
More file actions
39 lines (30 loc) · 1.11 KB
/
linux_bashrc
File metadata and controls
39 lines (30 loc) · 1.11 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
36
37
38
39
# vim: filetype=sh
#
# .bashrc that will be used on Linux OS
#
if [[ -f "${HOME}/.all_bashrc" ]]; then
source "${HOME}/.all_bashrc";
fi
alias ls='ls --color'
export PATH="${HOME}/usr/local/bin:${HOME}/usr/bin:/usr/local/bin:${PATH}"
# Use bash-completion, if available
# Can install using a package manager (e.g. `yum install bash-complete`)
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion
# Use git completion if available
git_completion_file=/etc/bash_completion.d/git;
[[ -f "${git_completion_file}" ]] && source "${git_completion_file}";
#----------
# Functions
#----------
# Delete all jobs on queue
function del_all_jobs() {
qstat | tail -n +3 | awk '{print $1}' | xargs qdel
}
# If there is a .custom_bash_profile in the home directory, then source it.
# This is designed to allow for machine specific setups (e.g. alias commands
# that only work on a particular machine).
if [ -f $HOME/.custom_bash_profile ]; then
. $HOME/.custom_bash_profile
fi
#test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"