Skip to content

Latest commit

 

History

History
executable file
·
89 lines (69 loc) · 4.57 KB

Terminal.md

File metadata and controls

executable file
·
89 lines (69 loc) · 4.57 KB

Terminal

[!note] Fish sets Terminal window and tab bar titles Fish sets Terminal window and tab bar titles to an abbreviated current working directory, and prepends the shell name if the default shell is left. For example, zsh ~/D/Python for zsh ~/Documents/Python. Changing directory when not in Fish shell will not update window and tab bars. I would prefer that Terminal settings take precedence. This is a Fish problem.

Shortcuts

Shortcut Action
control A / E Move cursor to beginning/end of line.
option B / F Move cursor back/forward one word.
control X X Jump between current and saved cursor position.
control U Delete the current line.
control D Delete character under cursor (or exit shell if line is empty).
control K Delete from cursor to end of line.
control W Delete from cursor to beginning of word.
option D Delete from cursor to end of word.
control T Swap current and preceding characters (transpose).
control / Undo last editing action.
control L Clear screen (but not scrollback).
control shift K Clear scrollback (but not screen).
double click on word Select a whole word.
triple click on line Select a whole line.
Shortcut Action
option + mouse click Reposition the cursor.
command L Clear to previous mark/command.
command K Clear to start (of Terminal session).
command option K Clear the scrollback.
command control K Clear the screen.

Commands

Open a file to edit. -e opens with TextEdit. Use -a to specify an app.

open -e ./file.txt

Open the current working directory in Finder.

open .
open -R /path/to/file # Open /path/to in Finder and highlight file

Settings

Hide login information.

touch .hushlogin

From the View, select Hide Marks.

Import modified Catppuccin profiles and set Catppuccin Mocha M default.

The modified profiles set IosevkaFixed Nerd Font Mono.

Remove default profiles.

For new profiles, change the following settings.

  • Text
    • Font: IosevkaFixed Nerd Font Mono 13 or any preferred alternative
  • Window
    • Title: Terminal
    • Select Working directory or arguments, Path
    • Select Shell command name
    • Deselect Active process name, Arguments
    • Deselect Dimensions
    • Window Size, Columns: 90, Rows: 30
    • Deselect Restore text when reopening windows
  • Tab
    • Select Working directory or document, Path
    • Deselect Active process name and Arguments
  • Keyboard
    • Select Use Option as Meta key
  • Advanced
    • Select Set locale environment variables on startup (Required for en_AU.UTF-8 locale.)