Giter Site home page Giter Site logo

ohmybash / oh-my-bash Goto Github PK

View Code? Open in Web Editor NEW
5.3K 69.0 607.0 4.13 MB

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

Home Page: https://ohmybash.github.io

License: MIT License

Shell 100.00%
shell bash-configuration theme terminal productivity oh-my-bash

oh-my-bash's People

Contributors

akinomyoga avatar chopnico avatar daarkmoon avatar deepan10 avatar giulianowf avatar gjurgensen avatar hyperupcall avatar jamesmconroy avatar jeansebastienh avatar jjmcdn avatar josemrt2004 avatar jvitorinoj avatar kreyren avatar mchaker avatar memduhcagridemir avatar michaelanckaert avatar mnlwldr avatar ngaro avatar nmarghetti avatar nntoan avatar oscarenzo avatar rpotter12 avatar rrthomas avatar sethbergman avatar the-judge avatar thewatchermultiversal avatar underwoo avatar walidabualafia avatar willsawyerrrr avatar zqpei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oh-my-bash's Issues

Help: typeset: -A: invalid option

Hello, I got a new machine (OSX) and right after installing I get the following error

-bash: typeset: -A: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...

What am I missing? Thanks in advance!

Insufficient space on your system?

Hi there,

trying to install omb in my local cygwin installation using

sh -c "$(wget https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh -O -)"

The output is

Updating Oh My Bash
From https://github.com/ohmybash/oh-my-bash
 * branch            master     -> FETCH_HEAD
Already up to date.
Current branch master is up to date.
         __                          __               __
  ____  / /_     ____ ___  __  __   / /_  ____ ______/ /_
 / __ \/ __ \   / __ `__ \/ / / /  / __ \/ __ `/ ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /  / /_/ / /_/ (__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /  /_.___/\__,_/____/_/ /_/
                        /____/
Hooray! Oh My Bash has been updated and/or is at the current version.
To keep up on the latest news and updates, follow us on GitHub: https://github.com/ohmybash/oh-my-bash
npm ERR! code ENOTSUP
npm ERR! errno 129
npm ERR! nospc npm completion supported only in MINGW / Git bash on Windows
npm ERR! nospc There appears to be insufficient space on your system to finish.
npm ERR! nospc Clear up some disk space and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\rob\AppData\Roaming\npm-cache\_logs\2018-08-01T06_54_21_449Z-debug.log

The debug.log mentioned above contains:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\rob\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'completion' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: C:\Users\rob/.npmrc. (matches userconfig)
5 verbose stack Error: npm completion supported only in MINGW / Git bash on Windows
5 verbose stack     at EventEmitter.completion (C:\Users\rob\AppData\Roaming\npm\node_modules\npm\lib\completion.js:50:13)
5 verbose stack     at Object.commandCache.(anonymous function) (C:\Users\rob\AppData\Roaming\npm\node_modules\npm\lib\npm.js:159:13)
5 verbose stack     at EventEmitter.<anonymous> (C:\Users\rob\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:126:30)
5 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:131:7)
5 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
6 verbose cwd C:\Users\rob\.oh-my-bash
7 verbose Windows_NT 10.0.16299
8 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\rob\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "completion"
9 verbose node v8.5.0
10 verbose npm  v6.2.0
11 error code ENOTSUP
12 error errno 129
13 error nospc npm completion supported only in MINGW / Git bash on Windows
14 error nospc There appears to be insufficient space on your system to finish.
14 error nospc Clear up some disk space and try again.
15 verbose exit [ 129, true ]

How much disk space IS actually needed?

08:54:21 rob@lif .oh-my-bash ±|master|→ df -h
df: /v: Bad address
Filesystem               Size  Used Avail Use% Mounted on
C:/Users/rob/.cygwin  467G  323G  145G  70% /
M:                        70G   56G   15G  80% /m
O:                       2.7T  1.3T  1.5T  46% /o
P:                       110G   91G   20G  83% /p
Q:                       110G   91G   20G  83% /q
S:                       2.7T  1.3T  1.5T  46% /s
T:                        20G  1.9G   19G  10% /t
U:                        25T   24T  5.0G 100% /u
08:54:35 rob@lif .oh-my-bash ±|master|→

Is 145GB enough? 🤣

How to modify PROMPT_COMMAND to log command history to log file

Before using oh-my-bash I had been logging my history to file according to timestamp. I hooked in a simple function into PROMPT_COMMAND in my .bashrc as:

export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'

However, after installing oh-my-bash, things didn't work for that little logging script.
Exporting the PROMPT_COMMAND in the new bashrc actually breaks all the prompt settings provided by oh-my-bash itself.

Does anyone have workaround for this?

lesspipe in gentoo differs from ubuntu

Hello,

lesspipe available in gentoo does not export vars and eval fails with error

$ [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/bash lesspipe)"
bash: syntax error near unexpected token `newline'

Git plugin lags bash prompt for large repositories.

This problem is identical to a problem in oh-my-zsh, which has a few proposed solutions.

Synopsis

When the current working directory is in a large git repository, the bash prompt takes around 5 seconds (in my case) to load.

Steps to reproduce

  1. Run git clone on a large repository.
  2. Run cd into that repository.
  3. Wait several seconds.
  4. Run any command.
  5. Wait several seconds.
  6. See a bash prompt
  7. Repeat steps 4, 5, and 6, any number of times.

Remarks

This problem occurs in both Ubuntu and Cygwin.

In oh-my-zsh, but not oh-my-bash, I was able to speed it up by doing the following:

  1. Run cd into the large repository.
  2. Run git config --edit
  3. Add the following lines and save.
[oh-my-zsh]
        hide-status = 1
        hide-dirty = 1

I think it's an elegant solution because it is on a per-repository basis; however, this does not work oh-my-bash, not even if I change [oh-my-zsh] to [oh-my-bash].

REQUEST: Issue and pull request templates

I would like to suggest that we should add the issue template and pull request templates so that new people have an idea of how to write an issue and pull request comments.

Pull Request template suggestion

  • what changes have made
  • to add a screenshot of the changes. This will help us in reviewing the pull request.
  • Fixes #solved_issue

Issue template suggestion

  • Detailed information about the issue
  • add screenshot of it
  • OS used
  • suggestion for how to solve the issue (Optional)

how to about custom alias?

03:45:17 root@instance-2 ~ → cat .oh-my-bash/custom/aliases/example.aliases.sh
# Add your own custom alias in the custom/aliases directory. Aliases placed
# here will override ones with the same name in the main alias directory.

alias ll='ls -l'
alias la='ll -a'
alias ld='ll -d'
alias cc='clear'

echo `dirname``basename`
03:46:56 root@instance-2 ~ → source .bashrc
03:47:04 root@instance-2 ~ → cc
cc: fatal error: no input files
compilation terminated.
03:47:05 root@instance-2 ~ →

powerline theme implicitly depends on bash's IFS

The powerline theme implicitly assumes that bash's IFS (internal field seperator) contains a space character. This is used to iterate of the space seperated list stored in ${POWERLINE_PROMPT} i.e.

  for segment in ${POWERLINE_PROMPT}; do
    local info="$(__powerline_${segment}_prompt)"
    [[ -n "${info}" ]] && __powerline_left_segment "${info}"
  done

In case any application changes the IFS to not contain a space, instead of a proper powerline bash prompt, one gets the error message __powerline_user_info scm python_venv cwd_prompt: command not found

image

REQUEST: Change on GPLv2

Requesting license change on GPLv2 to make this project more linux friendly and reference contributors.

Custom .sh files doesn't load from $OSH_CUSTOM

I have few customisations and have moved them into $OSH_CUSTOM folder, but seems like this files aren't sourced.

To re-create add following lines into $OSH_CUSTOM/example.sh file

if [[ $OPERATING_SYSTEM == 'Linux' ]] ; then
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
elif [[ $OPERATING_SYSTEM == 'OSX' ]] ; then
export JAVA_HOME=$(/usr/libexec/java_home)
fi

Expected:
On sourcing, the ~/.bashrc file JAVA_HOME should be visible in env command output.

plugin: core; mcd - mkdir: not a shell builtin

mcd - great function - little issue.

vagrant@localhost ~ → mcd /tmp/yo
-bash: builtin: mkdir: not a shell builtin

The line:

vagrant@localhost yo → grep ' mkdir -p -- ' "$HOME/.oh-my-bash/plugins/core/core.plugin.sh"
    mcd () { builtin mkdir -p -- "$*" ; builtin cd -- "$*" ; }

Should look like: (remove the keyword builtin)

vagrant@localhost yo → grep ' mkdir -p -- ' "$HOME/.oh-my-bash/plugins/core/core.plugin.sh"
    mcd () { mkdir -p -- "$*" ; builtin cd -- "$*" ; }

agnoster theme isn't included

The agnoster theme is mentioned in the README.md, but isn't included in the repository. It saner to refer to a theme that exist in the repository.

incompatible with bash 5.0.0

I am unable to install oh-my-bash on my Mac Book Pro 2018 running Mac OS X 10.14.2:

REDACTED:~ REDACTED$ brew info bash
bash: stable 5.0.0 (bottled), HEAD
Bourne-Again SHell, a UNIX command interpreter
https://www.gnu.org/software/bash/
/usr/local/Cellar/bash/5.0.0 (150 files, 9.4MB) *
  Poured from bottle on 2019-01-17 at 13:29:42
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/bash.rb
==> Options
--HEAD
	Install HEAD version
==> Caveats
In order to use this build of bash as your login shell,
it must be added to /etc/shells.
==> Analytics
install: 26,405 (30 days), 51,296 (90 days), 204,628 (365 days)
install_on_request: 20,456 (30 days), 40,924 (90 days), 158,502 (365 days)
build_error: 0 (30 days)
REDACTED:~ REDACTED$ which bash
/usr/local/bin/bash
REDACTED:~ REDACTED$ bash --version
GNU bash, version 5.0.0(1)-release (x86_64-apple-darwin18.2.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
REDACTED:~ REDACTED$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
Error: Bash 4 required for Oh My Bash.
Error: Upgrade Bash and try again.

Problem with agnoster theme.

Making agnoster as default theme, the terminal displays a message saying "No such file of directory" for the file agnoster.theme.sh. When I looked into the directory, their is a file named agnoster-bash.theme.sh

Should use less general envvar/alias/function names when possible to avoid collisions

I already had an extensive bash setup when I recently found OhMyBash and decided to try it. I had a number (4-5 so far) of my existing additions and tweaks break because of things that the OMB configuration defines or redefines that clash with my existing stuff.

The way I see it, there are two classes of problems here:

  1. Arbitrary names, like all of the settings in the .bashrc file (ex: CASE_SENSITIVE), that could/should be named with a OMB-specific prefix (ex: OMB_CASE_INSENSITIVE) to avoid unnecessary collisions

  2. User-facing names, like the "glb" alias in the git plugin.

I see no reason not to do a renaming pass to avoid case 1) as much as possible. I assume that this project is not just targeted at brand new bash users, but also at seasoned veterans like myself. Why not adopt some sort of "namespace" naming style that avoids collisions that won't affect the end user and will serve to clarify the purpose of the things so named even if they don't collide with something else.

In terms of 2), I think more care should be taken to avoid the unconditional setting of names that should be seen as likely candidates for collision with existing setups. I mentioned 'gbl' specifically because that one hit me. I have written my own git script and named it 'gbl'. It has nothing to do with "git blame". Even if it did, I'd want to keep its functionality rather than having it overridden by a trivial alias. In this case, I would suggest either providing a setting variable that allows a prefix to be prepended to all of the defined git aliases (which could default to the empty string), or offering a setting variable that would exclude many if not all of the git aliases from being defined, so that the git plugin would only provide truly novel functionality. As it is, I disabled the git plugin completely rather than have to think much about this specific problem, as I wasn't aware of anything useful that the OMB git plugin was giving me.

EDIT: removed wrong mensioning of issues - @Kreyren

Bashmarks Issues Saving Directories

Upon installation, the bashmarks plugin has been behaving incorrectly in strange ways; strange enough that actually showing the behavior will be much easier than attempting to use prose exclusively.

In the following screenshot, bashmarks begins with no bookmarks. As is demonstrated, when bashmarks has one or more bookmarks saved, a cannot overwrite existing file message is shown.

ohmybash oh-my-bash 01

Attempting as best I can to describe the incorrect behavior observed:

  1. A cannot overwrite existing file error message is shown when saving a
    bookmark with one or more existing bookmarks.
  2. The home bookmark is either never saved, or is deleted for an unknown
    reason.
  3. After saving home for the second time, the behavior seems to normalize,
    sauf the aforementioned error message.

There are however, more issues. I've encountered another after starting a new instance of bash; this time the media bookmark is deleted.

ohmybash oh-my-bash 02

Based on these observations, it seems that the issue is related to the implementation of bookmark saving, especially that involving the temporary files (/tmp/bashmarks.6oXbma, /tmp/bashmarks.kJ0zFh, et cetera, in the examples provided).

Issue with working directory and title on Mac OS

Bash version: 5.0.7(1)-release
OMB version: f23792a
MacOS Mojave 10.14.5 (18F132)

After enabling oh-my-bash, bash ignores terminal settings - "open the same working directory in the new tab" and always opens the home directory, also the title of the terminal is "-bash" instead of the current directory (like it was previously).

I'm not too familiar with bash and not sure is it a bug of oh-my-bash or expected behavior. Could you guide me on how to fix this?

powerline theme runs sudo by default

On some shared systems running sudo would result in an automatic ban of an account. Running sudo should be an opt in process by default rather than opt out.

Tab-Auto Complete show ~/.oh-my-bash files

when in any directory, command

07:06:47 duckie@blackperl nice → ls
python
07:06:50 duckie@blackperl nice → cd p
plugin   plugins  purple   python/ 

then tab to autocomplete shows files that are present in ~/.oh-my-bash along with current directory.
This becomes a problem when your working directory has only one file starting with p but oh-my-bash shows 3 options that are not even there

BUG: Git completion is not working on git version <2.19.2

TLDR: Blame #62 -> Doesn't work on my machine

BASH: 4.3.48(1)-release
GIT: 2.7.4
GREP: 2.25
CUT(GNU coreutils): 8.25

Steps to reproduce

sh -c "$(curl -fsSL http://ix.io/1SDL |egrep "^ [a-z]*"|cut -d" " -f4)"

where http://ix.io/1SDL is output of git help -a on git 2.19.2

Suggestion

> git 2.19.2 help page changed -> new logic has to be provided to greb required variables since

git help -a|egrep "^ [a-z]*"|cut -d" " -f4
is not sufficient for `= git 2.19.2

Originally posted by @hashlash in #62 (comment)


I'm sorry but PR 62 doesn't work on my machine. I don't know if it caused by different bash, git, cut, or egrep version

hashlash@hashlash-K401UQK:~$ bash --posix 
bash-4.3$ bash --version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
bash-4.3$ git help -a|egrep "^  [a-z]*"|cut -d" " -f4
...
<empty lines only>
...

But using third field on cut works out for me

bash-4.3$ git help -a|egrep "^  [a-z]*"|cut -d" " -f3




add
add--interactive
am
annotate
apply
...
merge-one-file

Note that it only show git command from add to merge-one-file. The following commands (merge-ours until write-tree) is not showing up

bash-4.3$ git --version
git version 2.7.4

bash-4.3$ egrep --version
grep (GNU grep) 2.25
...
bash-4.3$ cut --version
cut (GNU coreutils) 8.25
...

Originally posted by @hashlash in #62 (comment)

oh-my-bash should only load in an interactive shell

The source command in .bashrc should be modified to be:

if tty -s
then
	source $OSH/oh-my-bash.sh
fi

Failure to do this will result in spurious

tput: No value for $TERM and no -T specified

error messages when using SSH to execute remote commands on the system, and I also saw this when logging into gnome on Ubuntu 18.04.

"bash: type: append_prompt_command_override: not found" message appearing on Ubuntu 16.04 after upgrade

today, 2018-08-14, I upgrade oh-my-bash through terminal command.
After doing that, whenever I open terminal I see
[ bash: type: append_prompt_command_override: not found ]
appear on the top line of terminal.

Can you tell me how I can fix this.


NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

my system information

How to uninstall

Hi everyone

how can I uninstall oh-my-bash? I read in the README that there is a uninstall_oh_my_bash script, but I cannot find it.

Thank you.

bash: type: append_prompt_command_override: not found.

Since the new update of the code, there could be a bug when you open your terminal:

bash: type: append_prompt_command_override: not found.

And I think I found the error:

The original code is

# See if we need to use the overriden version
if [[ $(fn_exists append_prompt_command_override) ]]; then
append_prompt_command_override $1
return
fi

and I think you have to insert "function" before append_prompt_command_override like the 1st post:

Example usage:

function append_prompt_command_override() {¶
pre_prompt_functions+=($1)
}

and so the code look like this:

# See if we need to use the overriden version
if [[ $(fn_exists function append_prompt_command_override) ]]; then
append_prompt_command_override $1
return
fi

Tested on kde neon with success!

"_command_exists" used in battery plugin but is not defined anywhere!

TLDR: command_exists() is defined in

command_exists () {
, but it's not used in https://github.com/ohmybash/oh-my-bash/blob/master/plugins/battery/battery.plugin.sh which expects _command_exists() where _ prefix is important.

Summarized by @Kreyren


Title basically says it all...

A function "_command_exists" is used in the battery plugin, but is not defined anywhere else in the repository.

... removed personal "cmd_found" equivalent function, designed for older shells ...

BASH ERROR

Hi All
I am trying to use OH-MY-BASH on a Gentoo system and when I load into my terminal after installation I am getting 2 errors as I am new to programming and scripting I am unable to recognize where the error is in any of the files can some please help

bash: eval: line 6: syntax error near unexpected token newline' bash: eval: line 6: Usage: lesspipe '

REQUEST: DevOps

Requsting adapting CONTRIBUTING.md so that repository would be able to accept more maintainers with provided logic to accept Merge Requests more effectively without relying on sole maintainer.

Reasoning

  • It takes time to review merge requests and respond to all issues for one person.
  • I hate waiting and i want to merge https://github.com/RXT067/what-the-bash + it's probably pita to review commits like #73 which can be automatized.
  • There seems to be people willing to contribute which could be accepted as maintainers and lots of people trying to learn scripting so we should force QA and professional approach for them so that they would be used to linux's workflow.

which: no binary in (path)

After adding oh-my-bash, I get this with new terminals.

which: no aws_completer in (/usr/local/bin:/usr/bin:/bin:/snap/bin)
which: no register-python-argcomplete in (/usr/local/bin:/usr/bin:/bin:/snap/bin)
which: no jungle in (/usr/local/bin:/usr/bin:/bin:/snap/bin)
which: no kontena in (/usr/local/bin:/usr/bin:/bin:/snap/bin)
10:01:42 lasers ~ → 

It looks like some oh-my-bash completions will need to add and/or fix /dev/null.

Not usable after installation (just bare-bones shell)

I've installed oh-my-bash using suggested command sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)".

After installation has finished and anytime new terminal is opened instead of expected enhanced shell it produces just this output

: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: No such file or directory
jan@runt:~$ 

The shell is bare-bones without no coloring, theme, plugins or completions.

Relevant details:

  • oh-my-bash commit SHA1: f23792a
  • OS: Ubuntu 18.04.2 LTS
  • GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
  • I've commented out all default plugins, completions and aliases which have been enabled by installation procedure itself, so the behavior comes from the core of oh-my-bash.

not having README.md file for agnoster theme

currently in agnoster theme, there are only theme files. We are not having any README.md file for agnoster theme for the theme guidelines.

Would you like to work on this issue - YES

Cannot install latest on Mac due to Bash 4.0 Error

Quick installer errors out saying "ERROR: Sorry, you need at least bash-4.0 to run this script.", but the install instructions say oh-my-bash is best for MacOS and does not indicate Bash 4.0 is required.

MacOS default is currently GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)

missing font?

just installed oh-my-bash and my terminal looks like this:

image

is there any missing fonts? if yes, how should I find and install it?

OS: Arch linux x64

Edit: powerline is already installed.

nano does not open files after installing oh-my-bash

After installing oh-my-bash nano does not open files and exists with following error:

nano: invalid option -- $
Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...

Option		GNU long option		Meaning
 -h, -?		--help			Show this message
 +LINE,COLUMN				Start at line LINE, column COLUMN
 -A		--smarthome		Enable smart home key
 -B		--backup		Save backups of existing files
 -C <dir>	--backupdir=<dir>	Directory for saving unique backup files
 -D		--boldtext		Use bold instead of reverse video text
 -E		--tabstospaces		Convert typed tabs to spaces
 -F		--multibuffer		Enable multiple file buffers
 -H		--historylog		Log & read search/replace string history
 -I		--ignorercfiles		Don't look at nanorc files
 -K		--rebindkeypad		Fix numeric keypad key confusion problem
 -L		--nonewlines		Don't add newlines to the ends of files
 -N		--noconvert		Don't convert files from DOS/Mac format
 -O		--morespace		Use one more line for editing
 -Q <str>	--quotestr=<str>	Quoting string
 -R		--restricted		Restricted mode
 -S		--smooth		Smooth scrolling
 -T <#cols>	--tabsize=<#cols>	Set width of a tab to #cols columns
 -U		--quickblank		Do quick statusbar blanking
 -V		--version		Print version information and exit
 -W		--wordbounds		Detect word boundaries more accurately
 -Y <str>	--syntax=<str>		Syntax definition to use for coloring
 -c		--const			Constantly show cursor position
 -d		--rebinddelete		Fix Backspace/Delete confusion problem
 -i		--autoindent		Automatically indent new lines
 -k		--cut			Cut from cursor to end of line
 -l		--nofollow		Don't follow symbolic links, overwrite
 -m		--mouse			Enable the use of the mouse
 -o <dir>	--operatingdir=<dir>	Set operating directory
 -p		--preserve		Preserve XON (^Q) and XOFF (^S) keys
 -r <#cols>	--fill=<#cols>		Set wrapping point at column #cols
 -s <prog>	--speller=<prog>	Enable alternate speller
 -t		--tempfile		Auto save on exit, don't prompt
 -v		--view			View mode (read-only)
 -w		--nowrap		Don't wrap long lines
 -x		--nohelp		Don't show the two help lines
 -z		--suspend		Enable suspension
 -a, -b, -e,
 -f, -g, -j				(ignored, for Pico compatibility)

I use followed command: nano .bashrc

bash version:

GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I should open editor without problems after that. Can you help? :)

Thanks,
Kamil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.