Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
277f3821
Unverified
Commit
277f3821
authored
Feb 24, 2023
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: reorganize setopts in lib folder
parent
5cb943ee
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
directories.zsh
lib/directories.zsh
+1
-0
misc.zsh
lib/misc.zsh
+3
-5
theme-and-appearance.zsh
lib/theme-and-appearance.zsh
+0
-2
No files found.
lib/directories.zsh
View file @
277f3821
# Changing/making/removing directory
# Changing/making/removing directory
setopt auto_cd
setopt auto_pushd
setopt auto_pushd
setopt pushd_ignore_dups
setopt pushd_ignore_dups
setopt pushdminus
setopt pushdminus
...
...
lib/misc.zsh
View file @
277f3821
...
@@ -15,8 +15,9 @@ if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
...
@@ -15,8 +15,9 @@ if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
done
done
fi
fi
## jobs
setopt multios
# enable redirect to multiple streams: echo >file1 >file2
setopt long_list_jobs
setopt long_list_jobs
# show long list format job notifications
setopt interactivecomments
# recognize comments
env_default
'PAGER'
'less'
env_default
'PAGER'
'less'
env_default
'LESS'
'-R'
env_default
'LESS'
'-R'
...
@@ -30,6 +31,3 @@ if (( $+commands[ack-grep] )); then
...
@@ -30,6 +31,3 @@ if (( $+commands[ack-grep] )); then
elif
((
$+
commands[ack]
))
;
then
elif
((
$+
commands[ack]
))
;
then
alias
afind
=
'ack -il'
alias
afind
=
'ack -il'
fi
fi
# recognize comments
setopt interactivecomments
lib/theme-and-appearance.zsh
View file @
277f3821
...
@@ -53,8 +53,6 @@ if command diff --color /dev/null /dev/null &>/dev/null; then
...
@@ -53,8 +53,6 @@ if command diff --color /dev/null /dev/null &>/dev/null; then
compdef _diff color-diff
# compdef is already loaded by this point
compdef _diff color-diff
# compdef is already loaded by this point
fi
fi
setopt auto_cd
setopt multios
setopt prompt_subst
setopt prompt_subst
[[
-n
"
$WINDOW
"
]]
&&
SCREEN_NO
=
"%B
$WINDOW
%b "
||
SCREEN_NO
=
""
[[
-n
"
$WINDOW
"
]]
&&
SCREEN_NO
=
"%B
$WINDOW
%b "
||
SCREEN_NO
=
""
...
...
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