up
up
(which is the same as up 1
) or up n
, where an n
is a positive integerquit
quit
rmr
rmr .DS_Store
git fork
cd
s into itgit fork nirum/tableprint
email
email github AutinMitra
postgres
pg_ctl
can dopostgres start
, postgres stop
, etc. (see pg_ctl --help
)show
exa
show
or show dir/
or show file
globalprotect
globalprotect start
or globalprotect stop
Set up neomutt
by following this.
cd ~
git clone git@github.com:sumanthratna/dotprophet.git
cd /tmp
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
cd ~/dotprophet
ln -s ~/dotprophet/Brewfile ~/.Brewfile
brew bundle
cd ~
antibody bundle < ~/dotprophet/plugins.txt > ~/dotprophet/.plugins.sh
chmod +x ~/dotprophet/.plugins.sh
ln -s ~/dotprophet/rcfiles/zshrc ~/.zshrc
ln -s ~/dotprophet/gitconfig ~/.gitconfig
python3.8 -m venv ~/.config/nvim/env
source ~/.config/nvim/env/bin/activate
python3 -m pip install wheel
python3 -m pip install pynvim jedi psutil setproctitle yapf doq
deactivate
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim -c ':PlugInstall' -c ':UpdateRemotePlugins' -c ':qall'
mkdir -p ~/.config/nvim/pack/airblade/start
git clone git@github.com:airblade/vim-gitgutter.git ~/.config/nvim/pack/airblade/start
nvim -u NONE -c "helptags ~/.config/nvim/pack/airblade/start/vim-gitgutter/doc" -c q
ln -s ~/dotprophet/init.vim ~/.config/nvim/init.vim
ln -s ~/dotprophet/rcfiles/nanorc ~/.nanorc
trash ~/.atom/config.cson
trash ~/.atom/github.cson
trash ~/.atom/styles.less
python3.8 -m venv ~/dotprophet/atom/venv
source ~/dotprophet/atom/venv/bin/activate
python -m pip install 'python-language-server[all]'
deactivate
ln -s ~/dotprophet/atom/config.cson ~/.atom/config.cson
ln -s ~/dotprophet/atom/github.cson ~/.atom/github.cson
ln -s ~/dotprophet/atom/styles.less ~/.atom/styles.less
apm install --packages-file ~/dotprophet/atom/package-list.txt
ln -s ~/dotprophet/flutter_settings ~/.flutter_settings
ln -s ~/dotprophet/rcfiles/muttrc ~/.muttrc
ln -s ~/dotprophet/rcfiles/ondirrc ~/.ondirrc
ln -s ~/dotprophet/ssh_config ~/.ssh/config
Useful tips from Macworld (outdated permalink):
- ⌃ + A Go to the beginning of the line you are currently typing on
- ⌃ + E Go to the end of the line you are currently typing on
- ⌃ + L Clears the Screen, similar to the clear command
- ⌃ + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
- ⌃ + H Same as backspace
- ⌃ + R Let’s you search through previously used commands
- ⌃ + C Kill whatever you are running
- ⌃ + D Exit the current shell
- ⌃ + Z Puts whatever you are running into a suspended background process.
fg
restores it.- ⌃ + W Delete the word before the cursor
- ⌃ + K Clear the line after the cursor
- ⌃ + T Swap the last two characters before the cursor
- ⎋ + T Swap the last two words before the cursor
- ⌥ + F Move cursor forward one word on the current line
- ⌥ + B Move cursor backward one word on the current line