Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
77cf8696
Commit
77cf8696
authored
Jun 30, 2013
by
dongweiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for show in the command execution time stamp in the history
parent
bc3cadf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
aliases.zsh
lib/aliases.zsh
+12
-2
zshrc.zsh-template
templates/zshrc.zsh-template
+5
-0
No files found.
lib/aliases.zsh
View file @
77cf8696
...
@@ -13,8 +13,18 @@ alias please='sudo'
...
@@ -13,8 +13,18 @@ alias please='sudo'
#alias g='grep -in'
#alias g='grep -in'
# Show history
# Show history
alias history
=
'fc -l 1'
if
[
"
$HIST_STAMPS
"
=
"mm/dd/yyyy"
]
then
alias history
=
'fc -fl 1'
elif
[
"
$HIST_STAMPS
"
=
"dd.mm.yyyy"
]
then
alias history
=
'fc -El 1'
elif
[
"
$HIST_STAMPS
"
=
"yyyy-mm-dd"
]
then
alias history
=
'fc -il 1'
else
alias history
=
'fc -l 1'
fi
# List direcory contents
# List direcory contents
alias
lsa
=
'ls -lah'
alias
lsa
=
'ls -lah'
alias
l
=
'ls -la'
alias
l
=
'ls -la'
...
...
templates/zshrc.zsh-template
View file @
77cf8696
...
@@ -37,6 +37,11 @@ ZSH_THEME="robbyrussell"
...
@@ -37,6 +37,11 @@ ZSH_THEME="robbyrussell"
# much faster.
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment following line if you want to shown in the command execution time stamp
# in the history command output. The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|
# yyyy-mm-dd
# HIST_STAMPS="mm/dd/yyyy"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Example format: plugins=(rails git textmate ruby lighthouse)
...
...
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