From f098b47a257f4bf71e83a5fb5d92583da1be763f Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 9 Nov 2020 08:59:41 -0700 Subject: initial commit --- .Xresources | 45 +++++++++ .config/alacritty/alacritty.yml | 55 +++++++++++ .config/fish/fish_variables | 33 +++++++ .config/i3/config | 182 +++++++++++++++++++++++++++++++++++++ .config/qutebrowser/autoconfig.yml | 7 ++ .config/qutebrowser/bookmarks/urls | 0 .config/qutebrowser/quickmarks | 0 .config/redshift/redshift.conf | 10 ++ .config/youtube-dl/config | 1 + .config/zim/accelmap | 136 +++++++++++++++++++++++++++ .config/zim/notebooks.list | 9 ++ .tmux.conf | 3 + .vimrc | 32 +++++++ .zshrc | 26 ++++++ 14 files changed, 539 insertions(+) create mode 100644 .Xresources create mode 100644 .config/alacritty/alacritty.yml create mode 100644 .config/fish/fish_variables create mode 100644 .config/i3/config create mode 100644 .config/qutebrowser/autoconfig.yml create mode 100644 .config/qutebrowser/bookmarks/urls create mode 100644 .config/qutebrowser/quickmarks create mode 100644 .config/redshift/redshift.conf create mode 100644 .config/youtube-dl/config create mode 100644 .config/zim/accelmap create mode 100644 .config/zim/notebooks.list create mode 100644 .tmux.conf create mode 100644 .vimrc create mode 100644 .zshrc diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..fe2837f --- /dev/null +++ b/.Xresources @@ -0,0 +1,45 @@ +!Theme Nine +xterm*locale: true +xterm*utf8: 1 +*faceName: Terminus +*faceSize: 12 +*.foreground: #ffffff +*.background: #000000 +*.cursorColor: #bbbbbb +! +! Black +*.color0: #000000 +*.color8: #555555 +! +! Red +*.color1: #ff5555 +*.color9: #ff5555 +! +! Green +*.color2: #b9ca4a +*.color10: #9ec400 +! +! Yellow +*.color3: #e6c547 +*.color11: #e7c547 +! +! Blue +*.color4: #7aa6da +*.color12: #7aa6da +! +! Magenta +*.color5: #c397d8 +*.color13: #b77ee0 +! +! Cyan +*.color6: #70c0ba +*.color14: #54ced6 +! +! White +*.color7: #bbbbbb +*.color15: #ffffff +! +! Bold, Italic, Underline +*.colorBD: #ff5e7d +!*.colorIT: +!*.colorUL: diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..b9a60b2 --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,55 @@ +font: + # Normal (roman) font face + size: 11 + normal: + # Font family + # + # Default: + # - (macOS) Menlo + # - (Linux) monospace + # - (Windows) Consolas + family: Terminus + + # The `style` can be specified to pick a specific face. + # style: Regular + + # Offset is the extra space around each character. `offset.y` can be thought of + # as modifying the line spacing, and `offset.x` as modifying the letter spacing. + offset: + x: 0.0 + y: 0.0 + + # Glyph offset determines the locations of the glyphs within their cells with + # the default being at the bottom. Increasing `x` moves the glyph to the right, + # increasing `y` moves the glyph upwards. + glyph_offset: + x: 0.0 + y: 0.0 + +colors: + # Default colors + primary: + background: '0x0A0E14' + foreground: '0xB3B1AD' + + # Normal colors + normal: + black: '0x01060E' + red: '0xEA6C73' + green: '0x91B362' + yellow: '0xF9AF4F' + blue: '0x53BDFA' + magenta: '0xFAE994' + cyan: '0x90E1C6' + white: '0xC7C7C7' + + # Bright colors + bright: + black: '0x686868' + red: '0xF07178' + green: '0xC2D94C' + yellow: '0xFFB454' + blue: '0x59C2FF' + magenta: '0xFFEE99' + cyan: '0x95E6CB' + white: '0xFFFFFF' diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..4116bee --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,33 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3100 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:005fd7 +SETUVAR fish_color_comment:990000 +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:009900 +SETUVAR fish_color_error:ff0000 +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:00a6b2 +SETUVAR fish_color_param:00afff +SETUVAR fish_color_quote:999900 +SETUVAR fish_color_redirection:00afff +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell\x0aType\x20\x60help\x60\x20for\x20instructions\x20on\x20how\x20to\x20use\x20fish +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:\x1d +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/jordan/\x2elocal/bin diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 0000000..d37ee28 --- /dev/null +++ b/.config/i3/config @@ -0,0 +1,182 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! +exec xrandr --output HDMI-1 --primary --left-of DVI-D-1 + +set $mod Mod4 + +# menu -> Super_R binding (for niz plum) +exec xmodmap -e "keycode 135 = Super_R" + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Background image +exec --no-startup-id feh --bg-scale /home/jordan/downloads/art/nature/nature-1595874188456-2647.jpg + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec alacritty +# bindsym $mod+Return exec xterm + +# lock the system +bindsym $mod+Shift+x exec i3lock -d -c 000000 + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec dmenu_run +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# switch to workspace +bindsym $mod+1 workspace 1 +bindsym $mod+2 workspace 2 +bindsym $mod+3 workspace 3 +bindsym $mod+4 workspace 4 +bindsym $mod+5 workspace 5 +bindsym $mod+6 workspace 6 +bindsym $mod+7 workspace 7 +bindsym $mod+8 workspace 8 +bindsym $mod+9 workspace 9 +bindsym $mod+0 workspace 10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace 1 +bindsym $mod+Shift+2 move container to workspace 2 +bindsym $mod+Shift+3 move container to workspace 3 +bindsym $mod+Shift+4 move container to workspace 4 +bindsym $mod+Shift+5 move container to workspace 5 +bindsym $mod+Shift+6 move container to workspace 6 +bindsym $mod+Shift+7 move container to workspace 7 +bindsym $mod+Shift+8 move container to workspace 8 +bindsym $mod+Shift+9 move container to workspace 9 +bindsym $mod+Shift+0 move container to workspace 10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status + colors { + statusline #AAAAAA + background #333333 + focused_workspace #282828 #282828 #FFFFFF + inactive_workspace #333333 #333333 #AAAAAA + } +} + +client.unfocused #333333 #333333 #FFFFFF #333333 +client.focused_inactive #333333 #333333 #FFFFFF #000000 +client.focused #000000 #000000 #FFFFFF #000000 + +# Default sound devices (input and output) +# exec --no-startup-id pacmd set-default-sink 0 +# exec --no-startup-id pacmd set-default-source 3 + diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml new file mode 100644 index 0000000..4a80933 --- /dev/null +++ b/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,7 @@ +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 1 +global: + url.default_page: https://duckduckgo.com/ + url.start_pages: https://news.ycombinator.com/ diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls new file mode 100644 index 0000000..e69de29 diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks new file mode 100644 index 0000000..e69de29 diff --git a/.config/redshift/redshift.conf b/.config/redshift/redshift.conf new file mode 100644 index 0000000..205b73b --- /dev/null +++ b/.config/redshift/redshift.conf @@ -0,0 +1,10 @@ +[redshift] +; Set the day and night screen temperatures +temp-day=4500 +temp-night=2500 +adjustment-method=vidmode +location-provider=manual + +[manual] +lat=33 +lon=-112 diff --git a/.config/youtube-dl/config b/.config/youtube-dl/config new file mode 100644 index 0000000..fd59fa1 --- /dev/null +++ b/.config/youtube-dl/config @@ -0,0 +1 @@ +-o "./%(upload_date)s - %(title)s - %(id)s.%(ext)s" diff --git a/.config/zim/accelmap b/.config/zim/accelmap new file mode 100644 index 0000000..ec13d57 --- /dev/null +++ b/.config/zim/accelmap @@ -0,0 +1,136 @@ +; zim GtkAccelMap rc-file -*- scheme -*- +; this file is an automated accelerator map dump +; +; (gtk_accel_path "/MainWindow/set_pathbar_path" "") +; (gtk_accel_path "/MainWindow/go_menu" "") +; (gtk_accel_path "/GtkInterface/open_page_parent" "Up") +; (gtk_accel_path "/GtkInterface/show_templateeditor" "") +; (gtk_accel_path "/MainWindow/toggle_readonly" "") +; (gtk_accel_path "/GtkInterface/open_attachments_folder" "") +; (gtk_accel_path "/PageView/insert_link" "l") +; (gtk_accel_path "/GtkInterface/new_sub_page" "n") +; (gtk_accel_path "/PageView/cut" "x") +; (gtk_accel_path "/PageView/apply_format_strike" "k") +; (gtk_accel_path "/PageView/insert_line" "") +; (gtk_accel_path "/GtkInterface/reload_page" "r") +; (gtk_accel_path "/MainWindow/toggle_statusbar" "") +; (gtk_accel_path "/GtkInterface/open_document_root" "") +; (gtk_accel_path "/PageView/redo_alt1" "y") +; (gtk_accel_path "/MainWindow/set_pathbar_history" "") +; (gtk_accel_path "/MainWindow/toolbar_menu" "") +; (gtk_accel_path "/PageView/find_previous_alt1" "F3") +; (gtk_accel_path "/GtkInterface/open_page_child" "Down") +; (gtk_accel_path "/MainWindow/toggle_fullscreen" "F11") +; (gtk_accel_path "/GtkInterface/delete_page" "") +; (gtk_accel_path "/PageView/zoom_reset" "0") +; (gtk_accel_path "/GtkInterface/open_page_forward_alt1" "XF86Forward") +; (gtk_accel_path "/GtkInterface/open_notebook_folder" "") +; (gtk_accel_path "/PageView/apply_format_emphasis" "i") +; (gtk_accel_path "/GtkInterface/open_new_window" "") +; (gtk_accel_path "/PageView/uncheck_checkbox" "") +; (gtk_accel_path "/GtkInterface/show_open_notebook" "o") +; (gtk_accel_path "/GtkInterface/rename_page" "F2") +; (gtk_accel_path "/MainWindow/insert_menu" "") +; (gtk_accel_path "/GtkInterface/show_search" "f") +; (gtk_accel_path "/GtkInterface/save_page" "s") +; (gtk_accel_path "/GtkInterface/show_help_keys" "") +; (gtk_accel_path "/GtkInterface/new_page" "n") +; (gtk_accel_path "/GtkInterface/show_server_gui" "") +; (gtk_accel_path "/MainWindow/search_menu" "") +; (gtk_accel_path "/MainWindow/toggle_toolbar" "") +; (gtk_accel_path "/PageView/insert_bullet_list" "") +; (gtk_accel_path "/MainWindow/set_toolbar_icon_size_large" "") +; (gtk_accel_path "/MainWindow/checkbox_menu" "") +; (gtk_accel_path "/GtkInterface/open_page_previous" "Page_Up") +; (gtk_accel_path "/GtkInterface/show_export" "") +; (gtk_accel_path "/MainWindow/show_all_panes" "F9") +; (gtk_accel_path "/PageView/remove_link" "") +; (gtk_accel_path "/PageView/open_file_templates_folder" "") +; (gtk_accel_path "/PageView/toggle_format_emphasis" "") +; (gtk_accel_path "/GtkInterface/open_page" "j") +; (gtk_accel_path "/GtkInterface/email_page" "") +; (gtk_accel_path "/PageView/find_previous" "g") +; (gtk_accel_path "/PageView/show_word_count" "") +; (gtk_accel_path "/GtkInterface/import_page" "") +; (gtk_accel_path "/GtkInterface/open_page_next" "Page_Down") +; (gtk_accel_path "/PageView/apply_format_checkbox_list" "") +; (gtk_accel_path "/PageView/insert_checkbox_list" "") +; (gtk_accel_path "/PageView/edit_object" "e") +; (gtk_accel_path "/PageView/zoom_in_alt1" "equal") +; (gtk_accel_path "/MainWindowExtension/insert_symbol" "") +; (gtk_accel_path "/PageView/apply_format_bullet_list" "") +; (gtk_accel_path "/PageView/insert_date" "d") +; (gtk_accel_path "/PageView/toggle_checkbox" "F12") +; (gtk_accel_path "/PageView/undo" "z") +; (gtk_accel_path "/PageView/paste" "v") +; (gtk_accel_path "/MainWindow/set_toolbar_style_text_only" "") +; (gtk_accel_path "/MainWindow/set_pathbar_none" "") +; (gtk_accel_path "/GtkInterface/show_search_section" "") +; (gtk_accel_path "/PageView/apply_format_h5" "5") +; (gtk_accel_path "/PageView/apply_format_sup" "p") +; (gtk_accel_path "/MainWindow/toggle_panes" "F9") +; (gtk_accel_path "/GtkInterface/show_help" "F1") +; (gtk_accel_path "/PageView/apply_format_h4" "4") +; (gtk_accel_path "/PageView/apply_format_h3" "3") +; (gtk_accel_path "/PageView/apply_format_h2" "2") +; (gtk_accel_path "/PageView/apply_format_h1" "1") +; (gtk_accel_path "/MainWindow/set_toolbar_style_icons_and_text" "") +; (gtk_accel_path "/PageView/insert_image" "") +; (gtk_accel_path "/MainWindowExtensionDialog/go_page_today" "d") +; (gtk_accel_path "/PageView/show_find" "f") +; (gtk_accel_path "/MainWindow/set_toolbar_style_icons_only" "") +; (gtk_accel_path "/MainWindowExtensionDialog/show_calendar" "") +; (gtk_accel_path "/GtkInterface/save_copy" "") +; (gtk_accel_path "/MainWindow/format_menu" "") +; (gtk_accel_path "/GtkInterface/show_recent_changes" "") +; (gtk_accel_path "/PageView/insert_text_from_file" "") +; (gtk_accel_path "/MainWindow/set_pathbar_recent_changed" "") +; (gtk_accel_path "/PageView/apply_format_sub" "b") +; (gtk_accel_path "/GtkInterface/open_page_home" "Home") +; (gtk_accel_path "/PageView/apply_format_code" "t") +; (gtk_accel_path "/MainWindowExtension/show_versions" "") +; (gtk_accel_path "/PageView/show_find_and_replace" "h") +; (gtk_accel_path "/MainWindowExtension/save_version" "s") +; (gtk_accel_path "/MainWindow/set_pathbar_recent" "") +; (gtk_accel_path "/PageView/find_next_alt1" "F3") +; (gtk_accel_path "/PageView/delete" "") +; (gtk_accel_path "/PageView/copy" "c") +; (gtk_accel_path "/GtkInterface/open_page_back" "Left") +; (gtk_accel_path "/MainWindow/edit_menu" "") +; (gtk_accel_path "/GtkInterface/reload_index" "") +; (gtk_accel_path "/GtkInterface/move_page" "") +; (gtk_accel_path "/PageView/apply_format_strong" "b") +; (gtk_accel_path "/PageView/apply_format_mark" "u") +; (gtk_accel_path "/GtkInterface/quit" "q") +; (gtk_accel_path "/PageView/insert_new_file_menu" "") +; (gtk_accel_path "/GtkInterface/show_about" "") +; (gtk_accel_path "/MainWindow/view_menu" "") +; (gtk_accel_path "/PageView/zoom_in" "plus") +; (gtk_accel_path "/PageView/find_next" "g") +; (gtk_accel_path "/GtkInterface/open_page_forward" "Right") +; (gtk_accel_path "/GtkInterface/attach_file" "") +; (gtk_accel_path "/MainWindow/set_toolbar_icon_size_small" "") +; (gtk_accel_path "/GtkInterface/show_properties" "") +; (gtk_accel_path "/PageView/show_find_alt1" "F3") +; (gtk_accel_path "/GtkInterface/show_help_bugs" "") +; (gtk_accel_path "/MainWindow/pathbar_menu" "") +; (gtk_accel_path "/MainWindow/help_menu" "") +; (gtk_accel_path "/GtkInterface/manage_custom_tools" "") +; (gtk_accel_path "/MainWindow/tools_menu" "") +; (gtk_accel_path "/GtkInterface/open_page_back_alt1" "XF86Back") +; (gtk_accel_path "/PageView/xtoggle_checkbox" "F12") +; (gtk_accel_path "/GtkInterface/copy_location" "l") +; (gtk_accel_path "/MainWindowExtension/print_to_browser" "p") +; (gtk_accel_path "/GtkInterface/close" "w") +; (gtk_accel_path "/GtkInterface/show_help_faq" "") +; (gtk_accel_path "/MainWindow/file_menu" "") +; (gtk_accel_path "/GtkInterface/show_search_backlinks" "") +; (gtk_accel_path "/GtkInterface/show_preferences" "") +; (gtk_accel_path "/GtkInterface/edit_page_source" "") +; (gtk_accel_path "/PageView/clear_formatting" "9") +; (gtk_accel_path "/PageView/redo" "z") +; (gtk_accel_path "/PageView/zoom_out" "minus") +; (gtk_accel_path "/MainWindow/set_toolbar_icon_size_tiny" "") +; (gtk_accel_path "/PageView/apply_format_numbered_list" "") +; (gtk_accel_path "/PageView/insert_numbered_list" "") +; (gtk_accel_path "/PageView/migrate_checkbox" "") diff --git a/.config/zim/notebooks.list b/.config/zim/notebooks.list new file mode 100644 index 0000000..4590580 --- /dev/null +++ b/.config/zim/notebooks.list @@ -0,0 +1,9 @@ +[NotebookList] +Default= +1=~/documents/notebooks/Notes + +[Notebook 1] +uri=~/documents/notebooks/Notes +name=Notes +interwiki=None +icon=None diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..b4880f5 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,3 @@ +set -g default-terminal "screen-256color" +set -g status-bg black +set -g status-fg white diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..a15e795 --- /dev/null +++ b/.vimrc @@ -0,0 +1,32 @@ +syntax on +colo industry +set number +set mouse-=a +set backspace=indent,eol,start +set wildmode=longest:full,full +filetype plugin indent on +set tabstop=4 +set shiftwidth=4 +set expandtab +set autoindent +set breakindent +set formatoptions=t1 +set lbr +"set viminfo='100,<1000,s100,h +set viminfo='20,<100000 + +" highlight stray spaces and tabs when out of insert mode +highlight ExtraWhitespace ctermbg=red guibg=red +match ExtraWhitespace /\s\+$/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ +autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@/dev/null 1>&2 &" +alias rd="rd -B lynx" + +parse_git_branch() { + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' +} +setopt PROMPT_SUBST +PROMPT='%(!.%F{red}.%F{cyan})%n%f@%F{yellow}%m%f %F{red}%~%f$(parse_git_branch)> ' +TERM=screen-256color -- cgit v1.2.3-54-g00ecf