diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2025-02-27 19:23:47 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2025-02-27 19:23:47 -0500 |
commit | 45612fea097daaf67976fcbf41b455f5c4f980e5 (patch) | |
tree | 052e8f929df0b818b092a55c55749368722eca6a | |
parent | ea237e48a00955b4a0cd39ba142964b35f9b7edf (diff) |
Updates
-rw-r--r-- | desktop/.config/kglobalshortcutsrc | 357 | ||||
-rw-r--r-- | emacs/.config/emacs/init.el | 4 | ||||
-rw-r--r-- | zsh/.zshrc | 38 |
3 files changed, 15 insertions, 384 deletions
diff --git a/desktop/.config/kglobalshortcutsrc b/desktop/.config/kglobalshortcutsrc deleted file mode 100644 index 3c0c6e0..0000000 --- a/desktop/.config/kglobalshortcutsrc +++ /dev/null @@ -1,357 +0,0 @@ -[$Version] -update_info=bismuth_shortcuts_category.upd:bismuth-shortcuts-category,bismuth_shortcuts_from_kwin.upd:bismuth-shortcuts-from-kwin - -[ActivityManager] -_k_friendly_name=Activity Manager -switch-to-activity-148e5128-f06e-426c-aab6-2d2f301bac72=none,none,Switch to activity "Default" -switch-to-activity-15940a25-4119-4457-a45c-ae3dc105ff3b=none,none,Switch to activity "Default" -switch-to-activity-63183cf3-006c-4635-9900-a772919d18df=none,none,Switch to activity "Develop" -switch-to-activity-b1843570-40e0-4b21-9eb9-f17152093ed6=none,none,Switch to activity "Default" - -[KDE Keyboard Layout Switcher] -Switch keyboard layout to Chinese=none,none,Switch keyboard layout to Chinese -Switch keyboard layout to English (Dvorak)=none,none,Switch keyboard layout to English (Dvorak) -Switch keyboard layout to English (US)=none,none,Switch keyboard layout to English (US) -Switch to Next Keyboard Layout=Meta+Alt+K,Meta+Alt+K,Switch to Next Keyboard Layout -_k_friendly_name=Keyboard Layout Switcher - -[bismuth] -_k_friendly_name=Window Tiling -decrease_master_size=Meta+H,none,Decrease Master Area Size -decrease_master_win_count=Meta+[,Meta+[,Decrease Master Area Window Count -decrease_window_height=Meta+Ctrl+K,Meta+Ctrl+K,Decrease Window Height -decrease_window_width=Meta+Ctrl+H,Meta+Ctrl+H,Decrease Window Width -focus_bottom_window=none,Meta+J,Focus Bottom Window -focus_left_window=none,Meta+H,Focus Left Window -focus_next_window=Meta+J,none,Focus Next Window -focus_prev_window=Meta+K,none,Focus Previous Window -focus_right_window=none,Meta+L,Focus Right Window -focus_upper_window=none,Meta+K,Focus Upper Window -increase_master_size=Meta+T,none,Increase Master Area Size -increase_master_win_count=Meta+],Meta+],Increase Master Area Window Count -increase_window_height=Meta+Ctrl+J,Meta+Ctrl+J,Increase Window Height -increase_window_width=Meta+Ctrl+L,Meta+Ctrl+L,Increase Window Width -move_window_to_bottom_pos=Meta+Shift+J,Meta+Shift+J,Move Window Down -move_window_to_left_pos=Meta+Shift+H,Meta+Shift+H,Move Window Left -move_window_to_next_pos=none,none,Move Window to the Next Position -move_window_to_prev_pos=none,none,Move Window to the Previous Position -move_window_to_right_pos=Meta+Shift+L,Meta+Shift+L,Move Window Right -move_window_to_upper_pos=Meta+Shift+K,Meta+Shift+K,Move Window Up -next_layout=Meta+\\\\,Meta+\\\\,Switch to the Next Layout -prev_layout=Meta+|,Meta+|,Switch to the Previous Layout -push_window_to_master=Meta+Return,Meta+Return,Push Active Window to Master Area -rotate=Meta+R,Meta+R,Rotate -rotate_part=Meta+Shift+R,Meta+Shift+R,Rotate Part -rotate_reverse=none,none,Rotate (Reverse) -toggle_float_layout=Meta+Shift+F,Meta+Shift+F,Toggle Floating Layout -toggle_monocle_layout=Meta+M,Meta+M,Toggle Monocle Layout -toggle_quarter_layout=none,none,Toggle Quarter Layout -toggle_spiral_layout=none,none,Toggle Spiral Layout -toggle_spread_layout=none,none,Toggle Spread Layout -toggle_stair_layout=none,none,Toggle Stair Layout -toggle_three_column_layout=none,none,Toggle Three Column Layout -toggle_tile_layout=none,Meta+T,Toggle Tile Layout -toggle_window_floating=Meta+F,Meta+F,Toggle Active Window Floating - -[emacsclient-3.desktop] -_k_friendly_name=emacsclient -c -_launch=none,none,emacsclient -c - -[emacsclient.desktop] -_k_friendly_name=Emacs (Client) -_launch=none,none,Emacs (Client) -new-instance=none,none,New Instance -new-window=none,none,New Window - -[kaccess] -Toggle Screen Reader On and Off=Meta+Alt+S,Meta+Alt+S,Toggle Screen Reader On and Off -_k_friendly_name=Accessibility - -[kcm_touchpad] -Disable Touchpad=Touchpad Off,Touchpad Off, -Enable Touchpad=Touchpad On,Touchpad On, -Toggle Touchpad=Touchpad Toggle\tMeta+Ctrl+Zenkaku Hankaku,Touchpad Toggle\tMeta+Ctrl+Zenkaku Hankaku, -_k_friendly_name=Touchpad - -[kded5] -Show System Activity=Ctrl+Esc,Ctrl+Esc,Show System Activity -_k_friendly_name=KDE Daemon -display=Display\tMeta+P,Display\tMeta+P,Switch Display - -[khotkeys] -_k_friendly_name=Custom Shortcuts Service -{7b6a32ff-8c59-4736-88cf-e5db1508b193}=none,none,Launch Konsole -{d03619b6-9b3c-48cc-9d9c-a2aadb485550}=none,none,Search - -[kmix] -_k_friendly_name=Audio Volume -decrease_microphone_volume=Microphone Volume Down,Microphone Volume Down,Decrease Microphone Volume -decrease_volume=Volume Down,Volume Down,Decrease Volume -increase_microphone_volume=Microphone Volume Up,Microphone Volume Up,Increase Microphone Volume -increase_volume=Volume Up,Volume Up,Increase Volume -mic_mute=Microphone Mute\tMeta+Volume Mute,Microphone Mute\tMeta+Volume Mute,Mute Microphone -mute=Volume Mute,Volume Mute,Mute - -[ksmserver] -Halt Without Confirmation=none,,Halt Without Confirmation -Lock Session=Meta+L\tScreensaver,Meta+L\tScreensaver,Lock Session -Log Out=Ctrl+Alt+Del,Ctrl+Alt+Del,Log Out -Log Out Without Confirmation=none,,Log Out Without Confirmation -Reboot Without Confirmation=none,,Reboot Without Confirmation -_k_friendly_name=Session Management - -[kwin] -Activate Window Demanding Attention=Meta+Ctrl+A,Meta+Ctrl+A,Activate Window Demanding Attention -Decrease Opacity=none,,Decrease Opacity of Active Window by 5% -Edit Tiles=none,Meta+T,Toggle Tiles Editor -Expose=Ctrl+F9,Ctrl+F9,Toggle Present Windows (Current desktop) -ExposeAll=Ctrl+F10\tLaunch (C),Ctrl+F10\tLaunch (C),Toggle Present Windows (All desktops) -ExposeClass=Ctrl+F7,Ctrl+F7,Toggle Present Windows (Window class) -ExposeClassCurrentDesktop=none,none,Toggle Present Windows (Window class on current desktop) -Increase Opacity=none,,Increase Opacity of Active Window by 5% -Kill Window=Meta+Ctrl+Esc,Meta+Ctrl+Esc,Kill Window -Move Tablet to Next Output=none,none,Move the tablet to the next output -MoveMouseToCenter=Meta+F6,Meta+F6,Move Mouse to Center -MoveMouseToFocus=Meta+F5,Meta+F5,Move Mouse to Focus -MoveZoomDown=none,none,Move Zoomed Area Downwards -MoveZoomLeft=none,none,Move Zoomed Area to Left -MoveZoomRight=none,none,Move Zoomed Area to Right -MoveZoomUp=none,none,Move Zoomed Area Upwards -Overview=Meta+W,Meta+W,Toggle Overview -Setup Window Shortcut=none,,Setup Window Shortcut -Show Desktop=Meta+D,Meta+D,Peek at Desktop -ShowDesktopGrid=Meta+Space\tMeta+F8,Meta+F8,Show Desktop Grid -Suspend Compositing=Alt+Shift+F12,Alt+Shift+F12,Suspend Compositing -Switch One Desktop Down=Meta+Ctrl+Down,Meta+Ctrl+Down,Switch One Desktop Down -Switch One Desktop Up=Meta+Ctrl+Up,Meta+Ctrl+Up,Switch One Desktop Up -Switch One Desktop to the Left=Meta+Ctrl+Left,Meta+Ctrl+Left,Switch One Desktop to the Left -Switch One Desktop to the Right=Meta+Ctrl+Right,Meta+Ctrl+Right,Switch One Desktop to the Right -Switch Window Down=Meta+Alt+Down,Meta+Alt+Down,Switch to Window Below -Switch Window Left=Meta+Alt+Left,Meta+Alt+Left,Switch to Window to the Left -Switch Window Right=Meta+Alt+Right,Meta+Alt+Right,Switch to Window to the Right -Switch Window Up=Meta+Alt+Up,Meta+Alt+Up,Switch to Window Above -Switch to Desktop 1=Ctrl+F1\tMeta+1,Ctrl+F1,Switch to Desktop 1 -Switch to Desktop 10=none,,Switch to Desktop 10 -Switch to Desktop 11=none,,Switch to Desktop 11 -Switch to Desktop 12=none,,Switch to Desktop 12 -Switch to Desktop 13=none,,Switch to Desktop 13 -Switch to Desktop 14=none,,Switch to Desktop 14 -Switch to Desktop 15=none,,Switch to Desktop 15 -Switch to Desktop 16=none,,Switch to Desktop 16 -Switch to Desktop 17=none,,Switch to Desktop 17 -Switch to Desktop 18=none,,Switch to Desktop 18 -Switch to Desktop 19=none,,Switch to Desktop 19 -Switch to Desktop 2=Ctrl+F2\tMeta+2,Ctrl+F2,Switch to Desktop 2 -Switch to Desktop 20=none,,Switch to Desktop 20 -Switch to Desktop 3=Ctrl+F3\tMeta+3,Ctrl+F3,Switch to Desktop 3 -Switch to Desktop 4=Ctrl+F4\tMeta+4,Ctrl+F4,Switch to Desktop 4 -Switch to Desktop 5=Meta+5,,Switch to Desktop 5 -Switch to Desktop 6=Meta+6,,Switch to Desktop 6 -Switch to Desktop 7=Meta+7,,Switch to Desktop 7 -Switch to Desktop 8=Meta+8,,Switch to Desktop 8 -Switch to Desktop 9=Meta+9,,Switch to Desktop 9 -Switch to Next Desktop=none,,Switch to Next Desktop -Switch to Next Screen=none,,Switch to Next Screen -Switch to Previous Desktop=none,,Switch to Previous Desktop -Switch to Previous Screen=none,,Switch to Previous Screen -Switch to Screen 0=none,,Switch to Screen 0 -Switch to Screen 1=none,,Switch to Screen 1 -Switch to Screen 2=none,,Switch to Screen 2 -Switch to Screen 3=none,,Switch to Screen 3 -Switch to Screen 4=none,,Switch to Screen 4 -Switch to Screen 5=none,,Switch to Screen 5 -Switch to Screen 6=none,,Switch to Screen 6 -Switch to Screen 7=none,,Switch to Screen 7 -Switch to Screen Above=none,,Switch to Screen Above -Switch to Screen Below=none,,Switch to Screen Below -Switch to Screen to the Left=none,,Switch to Screen to the Left -Switch to Screen to the Right=none,,Switch to Screen to the Right -Toggle Night Color=none,none,Toggle Night Color -Toggle Window Raise/Lower=none,,Toggle Window Raise/Lower -Walk Through Desktop List=none,,Walk Through Desktop List -Walk Through Desktop List (Reverse)=none,,Walk Through Desktop List (Reverse) -Walk Through Desktops=none,,Walk Through Desktops -Walk Through Desktops (Reverse)=none,,Walk Through Desktops (Reverse) -Walk Through Windows=Alt+Tab,Alt+Tab,Walk Through Windows -Walk Through Windows (Reverse)=Alt+Shift+Backtab,Alt+Shift+Backtab,Walk Through Windows (Reverse) -Walk Through Windows Alternative=none,,Walk Through Windows Alternative -Walk Through Windows Alternative (Reverse)=none,,Walk Through Windows Alternative (Reverse) -Walk Through Windows of Current Application=Alt+`,Alt+`,Walk Through Windows of Current Application -Walk Through Windows of Current Application (Reverse)=Alt+~,Alt+~,Walk Through Windows of Current Application (Reverse) -Walk Through Windows of Current Application Alternative=none,,Walk Through Windows of Current Application Alternative -Walk Through Windows of Current Application Alternative (Reverse)=none,,Walk Through Windows of Current Application Alternative (Reverse) -Window Above Other Windows=none,,Keep Window Above Others -Window Below Other Windows=none,,Keep Window Below Others -Window Close=Alt+F4,Alt+F4,Close Window -Window Fullscreen=none,,Make Window Fullscreen -Window Grow Horizontal=none,,Expand Window Horizontally -Window Grow Vertical=none,,Expand Window Vertically -Window Lower=none,,Lower Window -Window Maximize=Meta+PgUp,Meta+PgUp,Maximize Window -Window Maximize Horizontal=none,,Maximize Window Horizontally -Window Maximize Vertical=none,,Maximize Window Vertically -Window Minimize=Meta+PgDown,Meta+PgDown,Minimize Window -Window Move=none,,Move Window -Window Move Center=none,,Move Window to the Center -Window No Border=none,,Toggle Window Titlebar and Frame -Window On All Desktops=none,,Keep Window on All Desktops -Window One Desktop Down=Meta+Ctrl+Shift+Down,Meta+Ctrl+Shift+Down,Window One Desktop Down -Window One Desktop Up=Meta+Ctrl+Shift+Up,Meta+Ctrl+Shift+Up,Window One Desktop Up -Window One Desktop to the Left=Meta+Ctrl+Shift+Left,Meta+Ctrl+Shift+Left,Window One Desktop to the Left -Window One Desktop to the Right=Meta+Ctrl+Shift+Right,Meta+Ctrl+Shift+Right,Window One Desktop to the Right -Window One Screen Down=none,,Window One Screen Down -Window One Screen Up=none,,Window One Screen Up -Window One Screen to the Left=none,,Window One Screen to the Left -Window One Screen to the Right=none,,Window One Screen to the Right -Window Operations Menu=Alt+F3,Alt+F3,Window Operations Menu -Window Pack Down=none,,Move Window Down -Window Pack Left=none,,Move Window Left -Window Pack Right=none,,Move Window Right -Window Pack Up=none,,Move Window Up -Window Quick Tile Bottom=Meta+Down,Meta+Down,Quick Tile Window to the Bottom -Window Quick Tile Bottom Left=none,,Quick Tile Window to the Bottom Left -Window Quick Tile Bottom Right=none,,Quick Tile Window to the Bottom Right -Window Quick Tile Left=Meta+Left,Meta+Left,Quick Tile Window to the Left -Window Quick Tile Right=Meta+Right,Meta+Right,Quick Tile Window to the Right -Window Quick Tile Top=Meta+Up,Meta+Up,Quick Tile Window to the Top -Window Quick Tile Top Left=none,,Quick Tile Window to the Top Left -Window Quick Tile Top Right=none,,Quick Tile Window to the Top Right -Window Raise=none,,Raise Window -Window Resize=none,,Resize Window -Window Shade=none,,Shade Window -Window Shrink Horizontal=none,,Shrink Window Horizontally -Window Shrink Vertical=none,,Shrink Window Vertically -Window to Desktop 1=none,,Window to Desktop 1 -Window to Desktop 10=none,,Window to Desktop 10 -Window to Desktop 11=none,,Window to Desktop 11 -Window to Desktop 12=none,,Window to Desktop 12 -Window to Desktop 13=none,,Window to Desktop 13 -Window to Desktop 14=none,,Window to Desktop 14 -Window to Desktop 15=none,,Window to Desktop 15 -Window to Desktop 16=none,,Window to Desktop 16 -Window to Desktop 17=none,,Window to Desktop 17 -Window to Desktop 18=none,,Window to Desktop 18 -Window to Desktop 19=none,,Window to Desktop 19 -Window to Desktop 2=none,,Window to Desktop 2 -Window to Desktop 20=none,,Window to Desktop 20 -Window to Desktop 3=none,,Window to Desktop 3 -Window to Desktop 4=none,,Window to Desktop 4 -Window to Desktop 5=none,,Window to Desktop 5 -Window to Desktop 6=none,,Window to Desktop 6 -Window to Desktop 7=none,,Window to Desktop 7 -Window to Desktop 8=none,,Window to Desktop 8 -Window to Desktop 9=none,,Window to Desktop 9 -Window to Next Desktop=none,,Window to Next Desktop -Window to Next Screen=Meta+Shift+Right,Meta+Shift+Right,Window to Next Screen -Window to Previous Desktop=none,,Window to Previous Desktop -Window to Previous Screen=Meta+Shift+Left,Meta+Shift+Left,Window to Previous Screen -Window to Screen 0=none,,Window to Screen 0 -Window to Screen 1=none,,Window to Screen 1 -Window to Screen 2=none,,Window to Screen 2 -Window to Screen 3=none,,Window to Screen 3 -Window to Screen 4=none,,Window to Screen 4 -Window to Screen 5=none,,Window to Screen 5 -Window to Screen 6=none,,Window to Screen 6 -Window to Screen 7=none,,Window to Screen 7 -_k_friendly_name=KWin -view_actual_size=none,Meta+0,Zoom to Actual Size -view_zoom_in=Meta++,Meta++\tMeta+=,Zoom In -view_zoom_out=Meta+-,Meta+-,Zoom Out - -[mediacontrol] -_k_friendly_name=Media Controller -mediavolumedown=none,,Media volume down -mediavolumeup=none,,Media volume up -nextmedia=Media Next,Media Next,Media playback next -pausemedia=Media Pause,Media Pause,Pause media playback -playmedia=none,,Play media playback -playpausemedia=Media Play,Media Play,Play/Pause media playback -previousmedia=Media Previous,Media Previous,Media playback previous -stopmedia=Media Stop,Media Stop,Stop media playback - -[org.kde.dolphin.desktop] -_k_friendly_name=Dolphin -_launch=none,Meta+E,Dolphin - -[org.kde.kcalc.desktop] -_k_friendly_name=KCalc -_launch=Launch (1),Launch (1),KCalc - -[org.kde.konsole.desktop] -NewTab=none,none,Open a New Tab -NewWindow=none,none,Open a New Window -_k_friendly_name=Konsole -_launch=Ctrl+Alt+T,Ctrl+Alt+T,Konsole - -[org.kde.krunner.desktop] -RunClipboard=Alt+Shift+F2,Alt+Shift+F2,Run command on clipboard contents -_k_friendly_name=KRunner -_launch=Alt+Space\tAlt+F2\tSearch,Alt+Space\tAlt+F2\tSearch,KRunner - -[org.kde.plasma.emojier.desktop] -_k_friendly_name=Emoji Selector -_launch=Meta+.\tMeta+Ctrl+Alt+Shift+Space,Meta+.\tMeta+Ctrl+Alt+Shift+Space,Emoji Selector - -[org.kde.spectacle.desktop] -ActiveWindowScreenShot=Meta+Print,Meta+Print,Capture Active Window -CurrentMonitorScreenShot=none,none,Capture Current Monitor -FullScreenScreenShot=Shift+Print,Shift+Print,Capture Entire Desktop -OpenWithoutScreenshot=none,none,Launch Spectacle without capturing -RectangularRegionScreenShot=Meta+Shift+Print,Meta+Shift+Print,Capture Rectangular Region -WindowUnderCursorScreenShot=Meta+Ctrl+Print,Meta+Ctrl+Print,Capture Window Under Cursor -_k_friendly_name=Spectacle -_launch=Print,Print,Launch Spectacle - -[org_kde_powerdevil] -Decrease Keyboard Brightness=Keyboard Brightness Down,Keyboard Brightness Down,Decrease Keyboard Brightness -Decrease Screen Brightness=Monitor Brightness Down,Monitor Brightness Down,Decrease Screen Brightness -Hibernate=Hibernate,Hibernate,Hibernate -Increase Keyboard Brightness=Keyboard Brightness Up,Keyboard Brightness Up,Increase Keyboard Brightness -Increase Screen Brightness=Monitor Brightness Up,Monitor Brightness Up,Increase Screen Brightness -PowerDown=Power Down,Power Down,Power Down -PowerOff=Power Off,Power Off,Power Off -Sleep=Sleep,Sleep,Suspend -Toggle Keyboard Backlight=Keyboard Light On/Off,Keyboard Light On/Off,Toggle Keyboard Backlight -Turn Off Screen=none,none,Turn Off Screen -_k_friendly_name=Power Management - -[plasmashell] -_k_friendly_name=Plasma -activate task manager entry 1=none,Meta+1,Activate Task Manager Entry 1 -activate task manager entry 10=Meta+0,Meta+0,Activate Task Manager Entry 10 -activate task manager entry 2=none,Meta+2,Activate Task Manager Entry 2 -activate task manager entry 3=none,Meta+3,Activate Task Manager Entry 3 -activate task manager entry 4=none,Meta+4,Activate Task Manager Entry 4 -activate task manager entry 5=none,Meta+5,Activate Task Manager Entry 5 -activate task manager entry 6=none,Meta+6,Activate Task Manager Entry 6 -activate task manager entry 7=none,Meta+7,Activate Task Manager Entry 7 -activate task manager entry 8=none,Meta+8,Activate Task Manager Entry 8 -activate task manager entry 9=none,Meta+9,Activate Task Manager Entry 9 -activate widget 28=Alt+F1,none,Activate Application Launcher Widget -activate widget 3=none,none,Activate Application Launcher Widget -clear-history=none,,Clear Clipboard History -clipboard_action=Meta+Ctrl+X,Meta+Ctrl+X,Automatic Action Popup Menu -cycle-panels=Meta+Alt+P,Meta+Alt+P,Move keyboard focus between panels -cycleNextAction=none,,Next History Item -cyclePrevAction=none,,Previous History Item -edit_clipboard=none,,Edit Contents⦠-manage activities=Meta+Q,Meta+Q,Show Activity Switcher -next activity=Meta+Tab,Meta+Tab,Walk through activities -previous activity=Meta+Shift+Tab,Meta+Shift+Tab,Walk through activities (Reverse) -repeat_action=Meta+Ctrl+R,Meta+Ctrl+R,Manually Invoke Action on Current Clipboard -show dashboard=Ctrl+F12,Ctrl+F12,Show Desktop -show-barcode=none,,Show Barcode⦠-show-on-mouse-pos=Meta+V,Meta+V,Show Items at Mouse Position -stop current activity=Meta+S,Meta+S,Stop Current Activity -switch to next activity=none,,Switch to Next Activity -switch to previous activity=none,,Switch to Previous Activity -toggle do not disturb=none,,Toggle do not disturb - -[systemsettings.desktop] -_k_friendly_name=System Settings -_launch=Tools,Tools,System Settings -kcm-kscreen=none,none,Display Configuration -kcm-lookandfeel=none,none,Global Theme -kcm-users=none,none,Users -powerdevilprofilesconfig=none,none,Energy Saving -screenlocker=none,none,Screen Locking diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index ff1863d..191ac4f 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -484,8 +484,8 @@ (rename-buffer (kj/shell-buffer-name))))) -(use-package with-editor - :hook ((shell-mode . with-editor-export-editor))) +;; (use-package with-editor +;; :hook ((shell-mode . with-editor-export-editor))) ;;;; Applications ;;;;; Tramp @@ -2,34 +2,33 @@ setopt inc_append_history share_history histignorealldups if [[ ${INSIDE_EMACS} == *comint* ]]; then PAGER=cat - TERM=xterm-256color unsetopt zle -fi -if [[ ${TERM} = "dumb" ]]; then - # This fixes TRAMP. - unsetopt zle - PS1='$ ' - return 0 -fi +else + PS1='%F{cyan}%~ %(?.%F{green}.%F{red})%#%f ' + source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh +fi; +# if [[ ${TERM} = "dumb" ]]; then +# # This fixes TRAMP. +# unsetopt zle +# PS1='$ ' +# return 0 +# fi -PS1='%F{cyan}%~ %(?.%F{green}.%F{red})%#%f ' # Resources: # https://github.com/mika/zsh-pony bindkey -e -autoload -Uz compinit; compinit -autoload -Uz promptinit; promptinit - zstyle ':completion:*' menu select zstyle ':completion::complete:*' gain-privileges 1 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +autoload -Uz compinit; compinit +autoload -Uz promptinit; promptinit + # Don't skip over symbols, e.g., when deleting a word from a path. WORDCHARS='' -# source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme - # cd to a directory used as a commant setopt autocd @@ -38,8 +37,6 @@ setopt interactivecomments alias ls="ls --color" alias e="emacsclient -n" -# Never got used to this. -# (( $+commands[exa] )) && alias ls="exa" if (( $+commands[fzf] )); then if (( $+commands[fzf-share] )); then @@ -53,15 +50,6 @@ if (( $+commands[fzf] )); then fi fi -if (( $+commands[zoxide] )); then - eval "$(zoxide init zsh)" -fi - -# Issues when typing 'ssh root@' with fast syntax hilighting. -if [[ -n ${INSIDE_EMACS} ]]; then - source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh -fi - # allow editing of command line autoload -U edit-command-line zle -N edit-command-line |