Sourcing an alias file in oh my zsh custom/ folderTweaking zsh git autocompletionHow to 'source' a shell...
Does a large simulator bay have standard public address announcements?
Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?
Checks user level and limit the data before saving it to mongoDB
can anyone help me with this awful query plan?
Elements other than carbon that can form many different compounds by bonding to themselves?
How do I reattach a shelf to the wall when it ripped out of the wall?
Why did C use the -> operator instead of reusing the . operator?
Betweenness centrality formula
Map of water taps to fill bottles
How to stop co-workers from teasing me because I know Russian?
What does the integral of a function times a function of a random variable represent, conceptually?
A Note on N!
Can I grease a crank spindle/bracket without disassembling the crank set?
Dynamic SOQL query relationship with field visibility for Users
How to prevent z-fighting in OpenSCAD?
Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?
Implications of cigar-shaped bodies having rings?
bldc motor, esc and battery draw, nominal vs peak
How can I practically buy stocks?
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
How to fry ground beef so it is well-browned
What happened to Captain America in Endgame?
Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?
Is there really no use for MD5 anymore?
Sourcing an alias file in oh my zsh custom/ folder
Tweaking zsh git autocompletionHow to 'source' a shell script using bash from zsh?zsh alias “…”Advanced alias in zsh shellHow to save user made zsh shell functions and aliasesCreate expandable commandsInverse bolded % at zsh promptHow do I change or remove an alias in Zsh in MacOS?zsh local array declaration causes strange behavior
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.
I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.
What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?
shell arch-linux zsh oh-my-zsh
add a comment |
I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.
I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.
What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?
shell arch-linux zsh oh-my-zsh
add a comment |
I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.
I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.
What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?
shell arch-linux zsh oh-my-zsh
I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.
I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.
What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?
shell arch-linux zsh oh-my-zsh
shell arch-linux zsh oh-my-zsh
asked Nov 23 '17 at 15:43
Elfen DewElfen Dew
162
162
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
My understanding is that you are trying to add your custom file aliases.zsh
to the directory .oh-my-zsh/custom/
I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
add a comment |
You should just symlink your main file in the custom dir.
ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1271179%2fsourcing-an-alias-file-in-oh-my-zsh-custom-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
My understanding is that you are trying to add your custom file aliases.zsh
to the directory .oh-my-zsh/custom/
I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
add a comment |
My understanding is that you are trying to add your custom file aliases.zsh
to the directory .oh-my-zsh/custom/
I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
add a comment |
My understanding is that you are trying to add your custom file aliases.zsh
to the directory .oh-my-zsh/custom/
I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"
My understanding is that you are trying to add your custom file aliases.zsh
to the directory .oh-my-zsh/custom/
I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"
answered May 24 '18 at 1:40
Harout360Harout360
1312
1312
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
add a comment |
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"
– Elfen Dew
May 24 '18 at 4:16
1
1
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.
– Elfen Dew
May 24 '18 at 4:21
add a comment |
You should just symlink your main file in the custom dir.
ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh
New contributor
add a comment |
You should just symlink your main file in the custom dir.
ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh
New contributor
add a comment |
You should just symlink your main file in the custom dir.
ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh
New contributor
You should just symlink your main file in the custom dir.
ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh
New contributor
New contributor
answered yesterday
SimonSimon
112
112
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1271179%2fsourcing-an-alias-file-in-oh-my-zsh-custom-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown