After I check the folder, I just know that the folder owned by “root” user.
ls -lah
sudo chown whoami .config
To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Open Terminal and enter the following in a single line:
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
Every developer can benefit from using the command line. Whether you use it to bounce between projects or create complex scripts, getting familiar with the command line can drastically improve your workflow.
In this post, we’ll cover some of the great tools available for streamlining your command line experience.
How to install powerlevel10k/powerlevel10k shell: https://gist.github.com/kevin-smets/8568070
After some experimenting, I’ve found that using a combination of iTerm 2, Oh-My-ZshZsh, Prezto, Z, Trash & Origami for Sublime Text - makes for an extremely productive setup.
I love the terminal. Besides the fact it makes you look awesome while using it.
Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.
Use Terminal and run commands
subl ~/.zshrc
then we can add commands:
# In line 88 change aliases text: # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" alias db="cd ~/Dropbox/" alias doc="cd ~/Documents/" alias zs="subl ~/.zshrc" alias gum="git pull upstream master"
Profit!
If you show message in terminal “You have mail” you can delete all messages
sudo rm /var/mail/<your-username>
If you want send mail via terminal use commands:
mail -s "hello" "example@example.com" <<EOF hello world EOF
You can access the mail by simply using the command
Solution : At first , run following script on Terminal app to create specific symlink.
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Then,
subl .
Hit return, it should instantly pop-up Sublime app.
Launch Terminal and be in the home directory to get started:
nano .inputrc
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete