-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
28 lines (26 loc) · 870 Bytes
/
Copy pathbashrc
File metadata and controls
28 lines (26 loc) · 870 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
27
28
#!/bin/bash
pushd . &> /dev/null
cd ~/.dotfiles_dir
# Automatically check for dotfiles updates
. bashrc.d/autoupdate
# Provides aliases for various VCS commands
. bashrc.d/vcs_alias
# Use a nice console font
. bashrc.d/console_font
# Provides sensible aliases & environment
. bashrc.d/excommands
# Sets the appropriate environment for devkitPro
test -d /opt/devkitpro && . bashrc.d/devkitpro
# When running xmonad, do some X setup
if [ "$DESKTOP_SESSION" != "" ]; then
( echo "$DESKTOP_SESSION" | grep xmonad &> /dev/null ) && . bashrc.d/xmonad
fi
# If we're on Windows, set up PATH correctly
if [ -e /c/ ]; then
. bashrc.d/windowspath
fi
# If we're on a vaguely recent version of Bash, source completion
if [ "${BASH_VERSINFO[0]}" -ge 4 ] && [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
fi
popd &> /dev/null