Remove function to determine platform (unused)
This commit is contained in:
parent
dd85d1b55f
commit
fffda87c9e
1 changed files with 0 additions and 13 deletions
13
bash_profile
13
bash_profile
|
@ -1,17 +1,4 @@
|
||||||
get_platform() {
|
|
||||||
local remove_spaces="s/ *//g"
|
|
||||||
local to_lower="y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
|
|
||||||
local get_version="s/[^0-9]*\(\([0-9]\+\.\?\)*\)/\1/"
|
|
||||||
local kernel=$(uname -s | sed "$remove_spaces; $to_lower")
|
|
||||||
local version=$(uname -r | sed "$get_version")
|
|
||||||
local machine=$(uname -m | sed "$remove_spaces; $to_lower")
|
|
||||||
echo "$kernel-$version-$machine"
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
#
|
|
||||||
export PLATFORM=$(get_platform)
|
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export HISTSIZE="65536"
|
export HISTSIZE="65536"
|
||||||
export HISTFILESIZE="$HISTSIZE"
|
export HISTFILESIZE="$HISTSIZE"
|
||||||
|
|
Loading…
Add table
Reference in a new issue