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
7f9ad833
Commit
7f9ad833
authored
Aug 10, 2014
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #196 from rominf/bak
Bak plugin: fixed directory handling
parents
672ec089
1335503c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
plugins/bak/bak.load
plugins/bak/bak.load
+1
-1
plugins/bak/cpbak.fish
plugins/bak/cpbak.fish
+1
-1
No files found.
plugins/bak/bak.load
View file @
7f9ad833
function __bak_name
function __bak_name
# trim / for directories
# trim / for directories
set arg (echo $argv[1] | sed
"s/\///"
)
set arg (echo $argv[1] | sed
's/\/$//'
)
echo "$arg.(date +"%Y%m%d_%H%M%S").bak"
echo "$arg.(date +"%Y%m%d_%H%M%S").bak"
end
end
...
...
plugins/bak/cpbak.fish
View file @
7f9ad833
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
# (c) Roman Inflianskas (rominf) <infroma@gmail.com>, 2014
# (c) Roman Inflianskas (rominf) <infroma@gmail.com>, 2014
function cpbak
function cpbak
__bak
cp
$argv
__bak
'cp -a'
$argv
end
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