Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
7ca03f32
Commit
7ca03f32
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move local-config plugin to oh-my-fish/plugin-local-config
https://github.com/oh-my-fish/plugin-local-config
parent
399ae64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
plugins/local-config/local-config.load
plugins/local-config/local-config.load
+0
-30
No files found.
plugins/local-config/local-config.load
deleted
100644 → 0
View file @
399ae64d
# Load custom settings for current hostname
set -l HOST (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//')
set -l HOST_SPECIFIC_FILE $fish_custom/hosts/$HOST.fish
if test -f $HOST_SPECIFIC_FILE
. $HOST_SPECIFIC_FILE
else
echo Creating host specific file: $HOST_SPECIFIC_FILE
mkdir -p (dirname $HOST_SPECIFIC_FILE)
touch $HOST_SPECIFIC_FILE
end
# Load custom settings for current user
set -l USER_SPECIFIC_FILE $fish_custom/users/(whoami).fish
if test -f $USER_SPECIFIC_FILE
. $USER_SPECIFIC_FILE
else
echo Creating user specific file: $USER_SPECIFIC_FILE
mkdir -p (dirname $USER_SPECIFIC_FILE)
touch $USER_SPECIFIC_FILE
end
# Load custom settings for current OS
set -l PLATFORM_SPECIFIC_FILE $fish_custom/platforms/(uname -s).fish
if test -f $PLATFORM_SPECIFIC_FILE
. $PLATFORM_SPECIFIC_FILE
else
echo Creating platform specific file: $PLATFORM_SPECIFIC_FILE
mkdir -p (dirname $PLATFORM_SPECIFIC_FILE)
touch $PLATFORM_SPECIFIC_FILE
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment