Amazon recommends adding zsh to .bashrc to change default shell for AWS CloudShell, since chsh somehow doesn't work. As I understand correctly, zsh runs in a child process. I wonder if I could add source zsh to .bashrc instead, since I'd like one less process as a minimalist.
Difference of "zsh" vs "source zsh" in ".bashrc"
552 Views Asked by Diego At
1
There are 1 best solutions below
Related Questions in BASH
- How do I recursively find and replace only in files named index.php on Linux webserver?
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- Multiple commands with find and xargs, also accounting for special characters
- How to split a directory into parts without compressing or archiving?
- concat a lot of files to stdout
- Honoring quotes while reading shell arguments from a file
- No laravel sync folders in homestead vagrant on windows
- Grouping commands in curly braces and piping does not preserve variable
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Evaluating condition of if statement in awk using a second file
- How to customise bash completion to pick only a custom set of commands?
- Bash regular expression execution hangs on long expressions
- Bitwise OR in bash arguments with square brackets
Related Questions in AMAZON-WEB-SERVICES
- "Access Denied" - User's Permissions to S3 Bucket
- Cohort analysis with Amazon Redshift / PostgreSQL
- Using Amazon KMS service on Heroku
- can't ssh in after cloning an EC2 instance on Amazon AWS
- Using HDFS with Apache Spark on Amazon EC2
- How can I access Mule ESB Community edition via browser?
- AWS EC2: Migrating from Windows to Linux Server
- AWS ELB Load Balancer: is it possible to set multiple session cookies?
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- Cloudfront stream only part of the video
- s3cmd not working as cron-task when echos/dates are added
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- InstanceProfile is required for creating cluster - create python function to install module
- How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
Related Questions in ZSH
- How to merge two arrays in a zipper like fashion in Bash?
- zsh prompt wrapping to a newline after adding buildstatus
- Provide description for zsh completion option?
- how to filter a phrase (ends in newline) from terminal output
- Make vim follow symlinks when opening files from command line
- PATH not working on Mac OS X 10.10.3
- What does autoload do in zsh?
- oh-my-zsh error after upgrade: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'
- Urxvt - powerline wrong color
- How to change shell from /bin/bash to /bin/zsh?
- Terminal zsh commands stopped working suddenly
- Should my $PATH be returning anything RVM related?
- Creating tmux layout with ZSH scripts
- Tmux breaks zsh aliases
- Cryptic error messages with npm and node
Related Questions in AWS-CLOUDSHELL
- How can I add request header parameters in HTTP integration WebSocket api gateway AWS
- How to generate AWS CLI equivalent of any console operation
- How can I create profiles in the AWS CloudShell to access different roles?
- Running multiple MSCK REPAIR TABLE statements in AWS Athena
- How to get N files from S3 bucket ordered by max size and modified after certain date using CloudShell?
- Key Pair not being created in AWS Cloudshell
- List of ec2 instances attached to one of iam role with cloudshell,cli
- How to add headers in existing AWS API gateway integration request
- AWS CloudShell not working after creating a new account with Control Tower
- AWS Cloudshell not starting
- React-snap faild in postbulid when uploading to AWS Amplify
- Enable kubectl autocompletion on aws cloudshell
- AWS CloudShell Error 'Unable to start the environment...'
- Execute file inside AWS CloudShell using lambda
- Difference of "zsh" vs "source zsh" in ".bashrc"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think you mean
exec zsh, notsource zsh, sincesourceprocesses the file as a set of bash statements, and therefore can't be used with binaries.You can do it, but some caution is advised:
Assume that you have in this way established an interactive zsh, in which you work, and at one time during your work, you want to create an interactive bash subshell (maybe for playing around with some bash commands). If you have a plain
exec zshin your .bashrc, your invocation ofbashwould again result in a zsh - not what you want.In order to avoid this, you can use a guard in your .bashrc, like this:
In your "top level" aws bash, this will replace the bash process by zsh, but in any child bash process, you will stick with bash.